home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 8 / CDACTUAL8.iso / docs / kernel-2.0 / filesyst / affs.txt < prev    next >
Encoding:
Text File  |  1996-07-11  |  5.3 KB  |  159 lines

  1. Amiga filesystems Overview
  2. ==========================
  3.  
  4. Not all varieties of the Amiga filesystems are supported.  The Amiga
  5. currently knows 6 different filesystems:
  6.  
  7. DOS\0        The old or original filesystem, not really suited for
  8.         hard disks and normally not used on them, either.
  9.  
  10. DOS\1        The original Fast File System. Supported.
  11.  
  12. DOS\2        The old "international" filesystem. International means that
  13.         a bug has been fixed so that accented ("international") letters
  14.         in file names are case-insensitive, as they ought to be.
  15.  
  16. DOS\3        The "international" Fast File System.  Supported.
  17.  
  18. DOS\4        The original filesystem with directory cache. The directory
  19.         cache speeds up directory accesses on floppies considerably,
  20.         but slows down file creation/deletion. Doesn't make much
  21.         sense on hard disks. Not supported.
  22.  
  23. DOS\5        The Fast File System with directory cache. Not supported.
  24.  
  25. All of the above filesystems allow block sizes from 512 to 32K bytes.
  26. Supported block sizes are: 512, 1024, 2048 and 4096 bytes. Larger blocks
  27. speed up almost everything with the expense of wasted disk space. The speed
  28. gain above 4K seems not really worth the price, so you don't lose too
  29. much here, either.
  30.  
  31. The muFS (multi user File System) equivalents of the above file systems
  32. are supported, too.
  33.  
  34. Mount options for the AFFS
  35. ==========================
  36.  
  37. protect        If this option is set, the protection bits cannot be altered.
  38.  
  39. uid[=uid]    This sets the uid of the root directory (i. e. the mount point
  40.         to uid or to the uid of the current user, if the =uid is
  41.         omitted.
  42.  
  43. gid[=gid]    Same as above, but for gid.
  44.  
  45. setuid[=uid]    This sets the owner of all files and directories in the file
  46.         system to uid or the uid of the current user, respectively.
  47.  
  48. setgid[=gid]    Same as above, but for gid.
  49.  
  50. use_mp        The uid and gid are taken from the now covered mount point
  51.         instead of the current user or value defined.
  52.  
  53. mode=mode    Sets the mode flags to the given (octal) value, regardless
  54.         of the original permissions. Directories will get an x
  55.         permission, if the corresponding r bit is set.
  56.         This is useful since most of the plain AmigaOS files
  57.         will map to 600.
  58.  
  59. reserved=num    Sets the number of reserved blocks at the start of the
  60.         partition to num. Default is 2.
  61.  
  62. root=block    Sets the block number of the root block. This should never
  63.         be necessary.
  64.  
  65. bs=blksize    Sets the blocksize to blksize. Valid block sizes are 512,
  66.         1024, 2048 and 4096. Like the root option, this should
  67.         never be necessary, as the affs can figure it out itself.
  68.  
  69. quiet        The file system will not return an error for disallowed
  70.         mode changes.
  71.  
  72. verbose        The volume name, file system type and block size will
  73.         be written to the syslog.
  74.  
  75. Handling of the Users/Groups and protection flags
  76. =================================================
  77.  
  78. Amiga -> Linux:
  79.  
  80. The Amiga protection flags RWEDRWEDHSPARWED are handled as follows:
  81.  
  82.   - R maps to r for user, group and others. On directories, R implies x.
  83.  
  84.   - If both W and D are allowed, w will be set.
  85.  
  86.   - If both R and S are set, x will be set.
  87.  
  88.   - H, P and E are always retained and ignored under Linux.
  89.  
  90.   - A is always reset when written.
  91.  
  92. User id and group id will be used unless set[gu]id are given as mount
  93. options. Since most of the Amiga file systems are single user systems
  94. they will be owned by root.
  95.  
  96. Linux -> Amiga:
  97.  
  98. The Linux rwxrwxrwx file mode is handled as follows:
  99.  
  100.   - r permission will set R for user, group and others.
  101.  
  102.   - w permission will set W and D for user, group and others.
  103.  
  104.   - x permission of the user will set S for plain files.
  105.  
  106.   - All other flags (suid, sgid, ...) are ignored and will
  107.     not be retained.
  108.     
  109. Newly created files and directories will get the user and group id
  110. of the current user and a mode according to the umask.
  111.  
  112. Command line example
  113. ====================
  114.     mount  Archive/Amiga/Workbench3.1.adf /mnt -t affs -o loop,size=1760
  115.     mount  /dev/sda3 /Amiga -t affs
  116.  
  117. /etc/fstab example
  118.     /dev/sdb5    /d/f    affs    ro
  119.  
  120. Bugs, Restrictions, Caveats
  121. ===========================
  122.  
  123. Quite a few things may not work as advertised. Not everything is
  124. tested, though several hundred MB have been read and written using
  125. this fs.
  126.  
  127. Filenames are truncated to 30 characters without warning.
  128.  
  129. Currently there are no checks against invalid characters (':')
  130. in filenames.
  131.  
  132. Case is ignored by the affs in filename matching, but Linux shells
  133. do care about the case. Example (with /mnt being an affs mounted fs):
  134.     rm /mnt/WRONGCASE
  135. will remove /mnt/wrongcase, but
  136.     rm /mnt/WR*
  137. will not since the names are matched by the shell.
  138.  
  139. The block allocation is designed for hard disk partitions. If more
  140. than 1 process writes to a (small) diskette, the blocks are allocated
  141. in an ugly way (but the real AFFS doesn't do much better). This
  142. is also true when space gets tight.
  143.  
  144. The bitmap valid flag in the root block may not be accurate when the
  145. system crashes while an affs partition is mounted. There's currently
  146. no way to fix this without an Amiga (disk validator) or manually
  147. (who would do this?). Maybe later.
  148.  
  149. A fsck.affs and mkfs.affs will probably be available in the future.
  150. Until then, you should do
  151.     ln -s /bin/true /etc/fs/mkfs.affs
  152.  
  153. It's not possible to read floppy disks with a normal PC or workstation
  154. due to an incompatibility to the Amiga floppy controller.
  155.  
  156. If you are interested in an Amiga Emulator for Linux, look at
  157.  
  158. http://www-users.informatik.rwth-aachen.de/~crux/uae.html
  159.