ia64/linux-2.6.18-xen.hg

annotate Documentation/filesystems/adfs.txt @ 524:7f8b544237bf

netfront: Allow netfront in domain 0.

This is useful if your physical network device is in a utility domain.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Apr 15 15:18:58 2008 +0100 (2008-04-15)
parents 831230e53067
children
rev   line source
ian@0 1 Mount options for ADFS
ian@0 2 ----------------------
ian@0 3
ian@0 4 uid=nnn All files in the partition will be owned by
ian@0 5 user id nnn. Default 0 (root).
ian@0 6 gid=nnn All files in the partition willbe in group
ian@0 7 nnn. Default 0 (root).
ian@0 8 ownmask=nnn The permission mask for ADFS 'owner' permissions
ian@0 9 will be nnn. Default 0700.
ian@0 10 othmask=nnn The permission mask for ADFS 'other' permissions
ian@0 11 will be nnn. Default 0077.
ian@0 12
ian@0 13 Mapping of ADFS permissions to Linux permissions
ian@0 14 ------------------------------------------------
ian@0 15
ian@0 16 ADFS permissions consist of the following:
ian@0 17
ian@0 18 Owner read
ian@0 19 Owner write
ian@0 20 Other read
ian@0 21 Other write
ian@0 22
ian@0 23 (In older versions, an 'execute' permission did exist, but this
ian@0 24 does not hold the same meaning as the Linux 'execute' permission
ian@0 25 and is now obsolete).
ian@0 26
ian@0 27 The mapping is performed as follows:
ian@0 28
ian@0 29 Owner read -> -r--r--r--
ian@0 30 Owner write -> --w--w---w
ian@0 31 Owner read and filetype UnixExec -> ---x--x--x
ian@0 32 These are then masked by ownmask, eg 700 -> -rwx------
ian@0 33 Possible owner mode permissions -> -rwx------
ian@0 34
ian@0 35 Other read -> -r--r--r--
ian@0 36 Other write -> --w--w--w-
ian@0 37 Other read and filetype UnixExec -> ---x--x--x
ian@0 38 These are then masked by othmask, eg 077 -> ----rwxrwx
ian@0 39 Possible other mode permissions -> ----rwxrwx
ian@0 40
ian@0 41 Hence, with the default masks, if a file is owner read/write, and
ian@0 42 not a UnixExec filetype, then the permissions will be:
ian@0 43
ian@0 44 -rw-------
ian@0 45
ian@0 46 However, if the masks were ownmask=0770,othmask=0007, then this would
ian@0 47 be modified to:
ian@0 48 -rw-rw----
ian@0 49
ian@0 50 There is no restriction on what you can do with these masks. You may
ian@0 51 wish that either read bits give read access to the file for all, but
ian@0 52 keep the default write protection (ownmask=0755,othmask=0577):
ian@0 53
ian@0 54 -rw-r--r--
ian@0 55
ian@0 56 You can therefore tailor the permission translation to whatever you
ian@0 57 desire the permissions should be under Linux.