Blame SOURCES/e2fsprogs-1.42.9-ext4-manpage-add-mountopts.patch

252946
commit 3e500a8f116b0515d1507fe0ab4bf617664a6cdc
252946
Author: Eric Sandeen <sandeen@redhat.com>
252946
Date:   Fri Jul 4 23:07:36 2014 -0400
252946
252946
    e2fsprogs: add mount options to ext4.5
252946
    
252946
    This is a straight cut and paste from the util-linux
252946
    mount manpage to ext4.5 (with commented-out lines
252946
    removed).
252946
    
252946
    It's pretty much impossible for util-linux to keep up
252946
    with every filesystem out there, and Karel has more than
252946
    once expressed a wish that mount options move into fs-specific
252946
    manpages.
252946
    
252946
    So, here we go.
252946
    
252946
    Signed-off-by: Eric Sandeen <sandeen@redhat.com>
252946
    Signed-off-by: Theodore Ts'o <tytso@mit.edu>
252946
252946
diff --git a/misc/ext4.5.in b/misc/ext4.5.in
252946
index 134c19f..9112b3d 100644
252946
--- a/misc/ext4.5.in
252946
+++ b/misc/ext4.5.in
252946
@@ -251,10 +251,368 @@ and it also speeds up the time required for
252946
 .BR mke2fs (8)
252946
 to create the file system.
252946
 .RE
252946
+.SH MOUNT OPTIONS
252946
+This section describes mount options which are specific to ext2, ext3,
252946
+and ext4.  Other generic mount options may be used as well; see
252946
+.BR mount (8)
252946
+for details.
252946
+.SH "Mount options for ext2"
252946
+The `ext2' filesystem is the standard Linux filesystem.
252946
+Since Linux 2.5.46, for most mount options the default
252946
+is determined by the filesystem superblock. Set them with
252946
+.BR tune2fs (8).
252946
+.TP
252946
+.BR acl | noacl
252946
+Support POSIX Access Control Lists (or not).
252946
+.TP
252946
+.BR bsddf | minixdf
252946
+Set the behavior for the
252946
+.I statfs
252946
+system call. The
252946
+.B minixdf
252946
+behavior is to return in the
252946
+.I f_blocks
252946
+field the total number of blocks of the filesystem, while the
252946
+.B bsddf
252946
+behavior (which is the default) is to subtract the overhead blocks
252946
+used by the ext2 filesystem and not available for file storage. Thus
252946
+.sp 1
252946
+% mount /k \-o minixdf; df /k; umount /k
252946
+.TS
252946
+tab(#);
252946
+l2 l2 r2 l2 l2 l
252946
+l c r c c l.
252946
+Filesystem#1024-blocks#Used#Available#Capacity#Mounted on
252946
+/dev/sda6#2630655#86954#2412169#3%#/k
252946
+.TE
252946
+.sp 1
252946
+% mount /k \-o bsddf; df /k; umount /k
252946
+.TS
252946
+tab(#);
252946
+l2 l2 r2 l2 l2 l
252946
+l c r c c l.
252946
+Filesystem#1024-blocks#Used#Available#Capacity#Mounted on
252946
+/dev/sda6#2543714#13#2412169#0%#/k
252946
+.TE
252946
+.sp 1
252946
+(Note that this example shows that one can add command line options
252946
+to the options given in
252946
+.IR /etc/fstab .)
252946
+.TP
252946
+.BR check=none " or " nocheck
252946
+No checking is done at mount time. This is the default. This is fast.
252946
+It is wise to invoke
252946
+.BR e2fsck (8)
252946
+every now and then, e.g.\& at boot time. The non-default behavior is unsupported
252946
+(check=normal and check=strict options have been removed). Note that these mount options
252946
+don't have to be supported if ext4 kernel driver is used for ext2 and ext3 filesystems.
252946
+.TP
252946
+.B debug
252946
+Print debugging info upon each (re)mount.
252946
+.TP
252946
+.BR errors= { continue | remount-ro | panic }
252946
+Define the behavior when an error is encountered.
252946
+(Either ignore errors and just mark the filesystem erroneous and continue,
252946
+or remount the filesystem read-only, or panic and halt the system.)
252946
+The default is set in the filesystem superblock, and can be
252946
+changed using
252946
+.BR tune2fs (8).
252946
+.TP
252946
+.BR grpid | bsdgroups " and " nogrpid | sysvgroups
252946
+These options define what group id a newly created file gets.
252946
+When
252946
+.B grpid
252946
+is set, it takes the group id of the directory in which it is created;
252946
+otherwise (the default) it takes the fsgid of the current process, unless
252946
+the directory has the setgid bit set, in which case it takes the gid
252946
+from the parent directory, and also gets the setgid bit set
252946
+if it is a directory itself.
252946
+.TP
252946
+.BR grpquota | noquota | quota | usrquota
252946
+The usrquota (same as quota) mount option enables user quota support on the
252946
+filesystem. grpquota enables group quotas support. You need the quota utilities
252946
+to actually enable and manage the quota system.
252946
+.TP
252946
+.B nouid32
252946
+Disables 32-bit UIDs and GIDs.  This is for interoperability with older
252946
+kernels which only store and expect 16-bit values.
252946
+.TP
252946
+.BR oldalloc " or " orlov
252946
+Use old allocator or Orlov allocator for new inodes. Orlov is default.
252946
+.TP
252946
+\fBresgid=\fP\,\fIn\fP and \fBresuid=\fP\,\fIn\fP
252946
+The ext2 filesystem reserves a certain percentage of the available
252946
+space (by default 5%, see
252946
+.BR mke2fs (8)
252946
+and
252946
+.BR tune2fs (8)).
252946
+These options determine who can use the reserved blocks.
252946
+(Roughly: whoever has the specified uid, or belongs to the specified group.)
252946
+.TP
252946
+.BI sb= n
252946
+Instead of block 1, use block
252946
+.I n
252946
+as superblock. This could be useful when the filesystem has been damaged.
252946
+(Earlier, copies of the superblock would be made every 8192 blocks: in
252946
+block 1, 8193, 16385, \&...\& (and one got thousands of copies on
252946
+a big filesystem). Since version 1.08,
252946
+.B mke2fs
252946
+has a \-s (sparse superblock) option to reduce the number of backup
252946
+superblocks, and since version 1.15 this is the default. Note
252946
+that this may mean that ext2 filesystems created by a recent
252946
+.B mke2fs
252946
+cannot be mounted r/w under Linux 2.0.*.)
252946
+The block number here uses 1\ k units. Thus, if you want to use logical
252946
+block 32768 on a filesystem with 4\ k blocks, use "sb=131072".
252946
+.TP
252946
+.BR user_xattr | nouser_xattr
252946
+Support "user." extended attributes (or not).
252946
+
252946
+
252946
+.SH "Mount options for ext3"
252946
+The ext3 filesystem is a version of the ext2 filesystem which has been
252946
+enhanced with journaling.  It supports the same options as ext2 as
252946
+well as the following additions:
252946
+.TP
252946
+.B journal=update
252946
+Update the ext3 filesystem's journal to the current format.
252946
+.TP
252946
+.B journal=inum
252946
+When a journal already exists, this option is ignored. Otherwise, it
252946
+specifies the number of the inode which will represent the ext3 filesystem's
252946
+journal file; ext3 will create a new journal, overwriting the old contents
252946
+of the file whose inode number is
252946
+.IR inum .
252946
+.TP
252946
+.BR journal_dev=devnum / journal_path=path
252946
+When the external journal device's major/minor numbers
252946
+have changed, these options allow the user to specify
252946
+the new journal location.  The journal device is
252946
+identified either through its new major/minor numbers encoded
252946
+in devnum, or via a path to the device.
252946
+.TP
252946
+.BR norecovery / noload
252946
+Don't load the journal on mounting.  Note that
252946
+if the filesystem was not unmounted cleanly,
252946
+skipping the journal replay will lead to the
252946
+filesystem containing inconsistencies that can
252946
+lead to any number of problems.
252946
+.TP
252946
+.BR data= { journal | ordered | writeback }
252946
+Specifies the journaling mode for file data.  Metadata is always journaled.
252946
+To use modes other than
252946
+.B ordered
252946
+on the root filesystem, pass the mode to the kernel as boot parameter, e.g.\&
252946
+.IR rootflags=data=journal .
252946
+.RS
252946
+.TP
252946
+.B journal
252946
+All data is committed into the journal prior to being written into the
252946
+main filesystem.
252946
+.TP
252946
+.B ordered
252946
+This is the default mode.  All data is forced directly out to the main file
252946
+system prior to its metadata being committed to the journal.
252946
+.TP
252946
+.B writeback
252946
+Data ordering is not preserved \(en data may be written into the main
252946
+filesystem after its metadata has been committed to the journal.
252946
+This is rumoured to be the highest-throughput option.  It guarantees
252946
+internal filesystem integrity, however it can allow old data to appear
252946
+in files after a crash and journal recovery.
252946
+.RE
252946
+.TP
252946
+.B data_err=ignore
252946
+Just print an error message if an error occurs in a file data buffer in
252946
+ordered mode.
252946
+.TP
252946
+.B data_err=abort
252946
+Abort the journal if an error occurs in a file data buffer in ordered mode.
252946
+.TP
252946
+.BR barrier=0 " / " barrier=1 "
252946
+This disables / enables the use of write barriers in the jbd code.  barrier=0
252946
+disables, barrier=1 enables (default). This also requires an IO stack which can
252946
+support barriers, and if jbd gets an error on a barrier write, it will disable
252946
+barriers again with a warning.  Write barriers enforce proper on-disk ordering
252946
+of journal commits, making volatile disk write caches safe to use, at some
252946
+performance penalty.  If your disks are battery-backed in one way or another,
252946
+disabling barriers may safely improve performance.
252946
+.TP
252946
+.BI commit= nrsec
252946
+Sync all data and metadata every
252946
+.I nrsec
252946
+seconds. The default value is 5 seconds. Zero means default.
252946
+.TP
252946
+.B user_xattr
252946
+Enable Extended User Attributes. See the
252946
+.BR attr (5)
252946
+manual page.
252946
+.TP
252946
+.B acl
252946
+Enable POSIX Access Control Lists. See the
252946
+.BR acl (5)
252946
+manual page.
252946
+.TP
252946
+.BR usrjquota=aquota.user | grpjquota=aquota.group | jqfmt=vfsv0
252946
+Apart from the old quota system (as in ext2, jqfmt=vfsold aka version 1 quota)
252946
+ext3 also supports journaled quotas (version 2 quota). jqfmt=vfsv0
252946
+enables journaled quotas. For journaled quotas the mount options
252946
+usrjquota=aquota.user and grpjquota=aquota.group are required to tell the
252946
+quota system which quota database files to use. Journaled quotas have the
252946
+advantage that even after a crash no quota check is required.
252946
+
252946
+.SH "Mount options for ext4"
252946
+The ext4 filesystem is an advanced level of the ext3 filesystem which
252946
+incorporates scalability and reliability enhancements for supporting large
252946
+filesystem.
252946
+
252946
+The options
252946
+.B journal_dev, norecovery, noload, data, commit, orlov, oldalloc, [no]user_xattr
252946
+.B [no]acl, bsddf, minixdf, debug, errors, data_err, grpid, bsdgroups, nogrpid
252946
+.B sysvgroups, resgid, resuid, sb, quota, noquota, grpquota, usrquota
252946
+.B usrjquota, grpjquota and jqfmt
252946
+are backwardly compatible with ext3 or ext2.
252946
+.TP
252946
+.B journal_checksum
252946
+Enable checksumming of the journal transactions.  This will allow the recovery
252946
+code in e2fsck and the kernel to detect corruption in the kernel.  It is a
252946
+compatible change and will be ignored by older kernels.
252946
+.TP
252946
+.B journal_async_commit
252946
+Commit block can be written to disk without waiting for descriptor blocks. If
252946
+enabled older kernels cannot mount the device.
252946
+This will enable 'journal_checksum' internally.
252946
+.TP
252946
+.BR barrier=0 " / " barrier=1 " / " barrier " / " nobarrier
252946
+These mount options have the same effect as in ext3.  The mount options
252946
+"barrier" and "nobarrier" are added for consistency with other ext4 mount
252946
+options.
252946
+
252946
+The ext4 filesystem enables write barriers by default.
252946
+.TP
252946
+.BI inode_readahead_blks= n
252946
+This tuning parameter controls the maximum number of inode table blocks that
252946
+ext4's inode table readahead algorithm will pre-read into the buffer cache.
252946
+The value must be a power of 2. The default value is 32 blocks.
252946
+.TP
252946
+.BI stripe= n
252946
+Number of filesystem blocks that mballoc will try to use for allocation size
252946
+and alignment. For RAID5/6 systems this should be the number of data disks *
252946
+RAID chunk size in filesystem blocks.
252946
+.TP
252946
+.B delalloc
252946
+Deferring block allocation until write-out time.
252946
+.TP
252946
+.B nodelalloc
252946
+Disable delayed allocation. Blocks are allocated when data is copied from user
252946
+to page cache.
252946
+.TP
252946
+.BI max_batch_time= usec
252946
+Maximum amount of time ext4 should wait for additional filesystem operations to
252946
+be batch together with a synchronous write operation. Since a synchronous
252946
+write operation is going to force a commit and then a wait for the I/O
252946
+complete, it doesn't cost much, and can be a huge throughput win, we wait for a
252946
+small amount of time to see if any other transactions can piggyback on the
252946
+synchronous write. The algorithm used is designed to automatically tune for
252946
+the speed of the disk, by measuring the amount of time (on average) that it
252946
+takes to finish committing a transaction. Call this time the "commit time".
252946
+If the time that the transaction has been running is less than the commit time,
252946
+ext4 will try sleeping for the commit time to see if other operations will join
252946
+the transaction. The commit time is capped by the max_batch_time, which
252946
+defaults to 15000\ \[mc]s (15\ ms). This optimization can be turned off entirely by
252946
+setting max_batch_time to 0.
252946
+.TP
252946
+.BI min_batch_time= usec
252946
+This parameter sets the commit time (as described above) to be at least
252946
+min_batch_time. It defaults to zero microseconds. Increasing this parameter
252946
+may improve the throughput of multi-threaded, synchronous workloads on very
252946
+fast disks, at the cost of increasing latency.
252946
+.TP
252946
+.BI journal_ioprio= prio
252946
+The I/O priority (from 0 to 7, where 0 is the highest priority) which should be
252946
+used for I/O operations submitted by kjournald2 during a commit operation.
252946
+This defaults to 3, which is a slightly higher priority than the default I/O
252946
+priority.
252946
+.TP
252946
+.B abort
252946
+Simulate the effects of calling ext4_abort() for
252946
+debugging purposes.  This is normally used while
252946
+remounting a filesystem which is already mounted.
252946
+.TP
252946
+.BR auto_da_alloc | noauto_da_alloc
252946
+Many broken applications don't use fsync() when
252946
+replacing existing files via patterns such as
252946
+
252946
+fd = open("foo.new")/write(fd,...)/close(fd)/ rename("foo.new", "foo")
252946
+
252946
+or worse yet
252946
+
252946
+fd = open("foo", O_TRUNC)/write(fd,...)/close(fd).
252946
+
252946
+If auto_da_alloc is enabled, ext4 will detect the replace-via-rename and
252946
+replace-via-truncate patterns and force that any delayed allocation blocks are
252946
+allocated such that at the next journal commit, in the default data=ordered
252946
+mode, the data blocks of the new file are forced to disk before the rename()
252946
+operation is committed.  This provides roughly the same level of guarantees as
252946
+ext3, and avoids the "zero-length" problem that can happen when a system
252946
+crashes before the delayed allocation blocks are forced to disk.
252946
+.TP
252946
+.B noinit_itable
252946
+Do not initialize any uninitialized inode table blocks in the background. This
252946
+feature may be used by installation CD's so that the install process can
252946
+complete as quickly as possible; the inode table initialization process would
252946
+then be deferred until the next time the filesystem is mounted.
252946
+.TP
252946
+.B init_itable=n
252946
+The lazy itable init code will wait n times the number of milliseconds it took
252946
+to zero out the previous block group's inode table. This minimizes the impact on
252946
+system performance while the filesystem's inode table is being initialized.
252946
+.TP
252946
+.BR discard / nodiscard
252946
+Controls whether ext4 should issue discard/TRIM commands to the underlying
252946
+block device when blocks are freed.  This is useful for SSD devices and
252946
+sparse/thinly-provisioned LUNs, but it is off by default until sufficient
252946
+testing has been done.
252946
+.TP
252946
+.B nouid32
252946
+Disables 32-bit UIDs and GIDs.  This is for
252946
+interoperability  with  older kernels which only
252946
+store and expect 16-bit values.
252946
+.TP
252946
+.BR block_validity / noblock_validity
252946
+This options allows to enables/disables the in-kernel facility for tracking
252946
+filesystem metadata blocks within internal data structures. This allows multi-\c
252946
+block allocator and other routines to quickly locate extents which might
252946
+overlap with filesystem metadata blocks. This option is intended for debugging
252946
+purposes and since it negatively affects the performance, it is off by default.
252946
+.TP
252946
+.BR dioread_lock / dioread_nolock
252946
+Controls whether or not ext4 should use the DIO read locking. If the
252946
+dioread_nolock option is specified ext4 will allocate uninitialized extent
252946
+before buffer write and convert the extent to initialized after IO completes.
252946
+This approach allows ext4 code to avoid using inode mutex, which improves
252946
+scalability on high speed storages. However this does not work with data
252946
+journaling and dioread_nolock option will be ignored with kernel warning.
252946
+Note that dioread_nolock code path is only used for extent-based files.
252946
+Because of the restrictions this options comprises it is off by default
252946
+(e.g.\& dioread_lock).
252946
+.TP
252946
+.B max_dir_size_kb=n
252946
+This limits the size of the directories so that any attempt to expand them
252946
+beyond the specified limit in kilobytes will cause an ENOSPC error. This is
252946
+useful in memory-constrained environments, where a very large directory can
252946
+cause severe performance problems or even provoke the Out Of Memory killer. (For
252946
+example, if there is only 512\ MB memory available, a 176\ MB directory may
252946
+seriously cramp the system's style.)
252946
+.TP
252946
+.B i_version
252946
+Enable 64-bit inode version support. This option is off by default.
252946
+
252946
 .SH SEE ALSO
252946
 .BR mke2fs (8),
252946
 .BR mke2fs.conf (5),
252946
 .BR e2fsck (8),
252946
 .BR dumpe2fs (8),
252946
 .BR tune2fs (8),
252946
-.BR debugfs (8)
252946
+.BR debugfs (8),
252946
+.BR mount (8)