From 3c1f7603bf7d3229cfb5d6522af30b8003acdf9e Mon Sep 17 00:00:00 2001 From: Jan Kara Date: Wed, 28 Jan 2015 10:50:53 +0100 Subject: mount: Further FAT mount option update Add some mount options mentioned in Documentation/filesystems/vfat.txt. Signed-off-by: Jan Kara --- sys-utils/mount.8 | 49 ++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 44 insertions(+), 5 deletions(-) (limited to 'sys-utils/mount.8') diff --git a/sys-utils/mount.8 b/sys-utils/mount.8 index bfa82a0d7..fac4b0c9b 100644 --- a/sys-utils/mount.8 +++ b/sys-utils/mount.8 @@ -1989,7 +1989,16 @@ If set, causes discard/TRIM commands to be issued to the block device when blocks are freed. This is useful for SSD devices and sparse/thinly-provisioned LUNs. .TP -.BR fat= {12 | 16 | 32 } +.B dos1xfloppy +If set, use a fallback default BIOS Parameter Block configuration, determined +by backing device size. These static parameters match defaults assumed by DOS +1.x for 160 kiB, 180 kiB, 320 kiB, and 360 kiB floppies and floppy images. +.TP +.BR errors= { panic | continue | remount-ro } +Specify FAT behavior on critical errors: panic, continue without doing +anything, or remount the partition in read-only mode (default behavior). +.TP +.BR fat= { 12 | 16 | 32 } Specify a 12, 16 or 32 bit fat. This overrides the automatic FAT type detection routine. Use with caution! .TP @@ -1998,10 +2007,32 @@ Character set to use for converting between 8 bit characters and 16 bit Unicode characters. The default is iso8859-1. Long filenames are stored on disk in Unicode format. .TP -.B nfs -If set, enables in-memory indexing of directory inodes to reduce the -frequency of ESTALE errors in NFS client operations. Useful only when -the filesystem is exported via NFS. +.BR nfs= { stale_rw | nostale_ro } +Enable this only if you want to export the FAT filesystem over NFS. + +.BR stale_rw : +This option maintains an index (cache) of directory inodes which is used by the +nfs-related code to improve look-ups. Full file operations (read/write) over +NFS are supported but with cache eviction at NFS server, this could result in +spurious +.B ESTALE +errors. + +.BR nostale_ro : +This option bases the inode number and filehandle +on the on-disk location of a file in the FAT directory entry. +This ensures that +.B ESTALE +will not be returned after a file is +evicted from the inode cache. However, it means that operations +such as rename, create and unlink could cause filehandles that +previously pointed at one file to point at a different file, +potentially causing data corruption. For this reason, this +option also mounts the filesystem readonly. + +To maintain backward compatibility, '-o nfs' is also accepted, +defaulting to +.BR stale_rw . .TP .BI tz=UTC This option disables the conversion of timestamps @@ -2029,6 +2060,14 @@ Turn on the flag. Attempts to chown or chmod files do not return errors, although they fail. Use with caution! .TP +.B rodir +FAT has the ATTR_RO (read-only) attribute. On Windows, the ATTR_RO of the +directory will just be ignored, and is used only by applications as a flag +(e.g. it's set for the customized folder). + +If you want to use ATTR_RO as read-only flag even for the directory, set this +option. +.TP .B showexec If set, the execute permission bits of the file will be allowed only if the extension part of the name is \&.EXE, \&.COM, or \&.BAT. Not set by default. -- cgit v1.2.3-55-g7522