adfs.txt 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. Mount options for ADFS
  2. ----------------------
  3. uid=nnn All files in the partition will be owned by
  4. user id nnn. Default 0 (root).
  5. gid=nnn All files in the partition will be in group
  6. nnn. Default 0 (root).
  7. ownmask=nnn The permission mask for ADFS 'owner' permissions
  8. will be nnn. Default 0700.
  9. othmask=nnn The permission mask for ADFS 'other' permissions
  10. will be nnn. Default 0077.
  11. ftsuffix=n When ftsuffix=0, no file type suffix will be applied.
  12. When ftsuffix=1, a hexadecimal suffix corresponding to
  13. the RISC OS file type will be added. Default 0.
  14. Mapping of ADFS permissions to Linux permissions
  15. ------------------------------------------------
  16. ADFS permissions consist of the following:
  17. Owner read
  18. Owner write
  19. Other read
  20. Other write
  21. (In older versions, an 'execute' permission did exist, but this
  22. does not hold the same meaning as the Linux 'execute' permission
  23. and is now obsolete).
  24. The mapping is performed as follows:
  25. Owner read -> -r--r--r--
  26. Owner write -> --w--w---w
  27. Owner read and filetype UnixExec -> ---x--x--x
  28. These are then masked by ownmask, eg 700 -> -rwx------
  29. Possible owner mode permissions -> -rwx------
  30. Other read -> -r--r--r--
  31. Other write -> --w--w--w-
  32. Other read and filetype UnixExec -> ---x--x--x
  33. These are then masked by othmask, eg 077 -> ----rwxrwx
  34. Possible other mode permissions -> ----rwxrwx
  35. Hence, with the default masks, if a file is owner read/write, and
  36. not a UnixExec filetype, then the permissions will be:
  37. -rw-------
  38. However, if the masks were ownmask=0770,othmask=0007, then this would
  39. be modified to:
  40. -rw-rw----
  41. There is no restriction on what you can do with these masks. You may
  42. wish that either read bits give read access to the file for all, but
  43. keep the default write protection (ownmask=0755,othmask=0577):
  44. -rw-r--r--
  45. You can therefore tailor the permission translation to whatever you
  46. desire the permissions should be under Linux.
  47. RISC OS file type suffix
  48. ------------------------
  49. RISC OS file types are stored in bits 19..8 of the file load address.
  50. To enable non-RISC OS systems to be used to store files without losing
  51. file type information, a file naming convention was devised (initially
  52. for use with NFS) such that a hexadecimal suffix of the form ,xyz
  53. denoted the file type: e.g. BasicFile,ffb is a BASIC (0xffb) file. This
  54. naming convention is now also used by RISC OS emulators such as RPCEmu.
  55. Mounting an ADFS disc with option ftsuffix=1 will cause appropriate file
  56. type suffixes to be appended to file names read from a directory. If the
  57. ftsuffix option is zero or omitted, no file type suffixes will be added.