summaryrefslogtreecommitdiff
path: root/misc/tune2fs.8.in
AgeCommit message (Collapse)AuthorFilesLines
2011-09-25e2fsck: regression tests for INCOMPAT_MMP featureAndreas Dilger1-3/+3
Add tests for the MMP feature - creating a filesystem with mke2fs and MMP enabled, enable/disable MMP with tune2fs, disabling the e2fsck MMP flag with tune2fs after a failed e2fsck, and e2fsck checking and fixing a corrupt MMP block. The MMP tests need to be run from a real disk, not tmpfs, because tmpfs doesn't support O_DIRECT reads, which MMP uses to ensure that reads from the MMP block are not filled from the page cache. Using a local disk does not slow down the tests noticably, since they wait to detect if the MMP block is being modified. Signed-off-by: Andreas Dilger <adilger@whamcloud.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2011-09-25ext2fs: add multi-mount protection (INCOMPAT_MMP)Andreas Dilger1-0/+23
Multi-mount protection is feature that allows mke2fs, e2fsck, and others to detect if the filesystem is mounted on a remote node (on SAN disks) and avoid corrupting the filesystem. For e2fsprogs this means that it checks the MMP block to see if the filesystem is in use, and marks the filesystem busy while e2fsck is running on the system. This is useful on SAN disks that are shared between high-availability servers, or accessible by multiple nodes that aren't in HA pairs. MMP isn't intended to serve as a primary HA exclusion mechanism, but as a failsafe to protect against user, software, or hardware errors. There is no requirement that e2fsck updates the MMP block at regular intervals, but e2fsck does this occasionally to provide useful information to the sysadmin in case of a detected conflict. For the kernel (since Linux 3.0) MMP adds a "heartbeat" mechanism to periodically write to disk (every few seconds by default) to notify other nodes that the filesystem is still in use and unsafe to modify. Originally-by: Kalpak Shah <kalpak@clusterfs.com> Signed-off-by: Johann Lombardi <johann@whamcloud.com> Signed-off-by: Andreas Dilger <adilger@whamcloud.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2011-08-31tune2fs: Add support for turning on quota featureAditya Kali1-0/+15
This patch adds support for setting the quota feature in superblock and allows selectively creating quota inodes (user or group or both) in the superblock. Currently, modifying the quota feature is only supported when the filesystem is unmounted. Also, when setting the quota feature, tune2fs will use aquota.user or aquota.group file inode number in superblock if these files exist. Otherwise it will initialize empty quota inodes #3 and #4 and use them. Here is how it works: # Set quota feature and initialize both (user and group) quota inodes $ tune2fs -O quota /dev/ram1 # Enable only one type of quota $ tune2fs -Q usrquota /dev/ram1 # Enable grpquota, disable usrquota $ tune2fs -Q ^usrquota,grpquota /dev/ram1 # Clear quota feature and remove quota inodes $ tune2fs -O ^quota /dev/ram1 Signed-off-by: Aditya Kali <adityakali@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2011-06-11tune2fs: add dir_index feature to tune2fs man pageAndreas Dilger1-0/+3
Add description of missing dir_index feature to tune2fs(8) man page. Signed-off-by: Andreas Dilger <adilger@whamcloud.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2010-09-25tune2fs.8: Document that the device can be specified via LABEL= or UUID=Theodore Ts'o1-0/+6
Addresses-Debian-Bug: #580236 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2010-09-18tune2fs, debugfs, libext2fs: Add support for ext4 default mount optionsTheodore Ts'o1-0/+49
Add support for 2.6.35's new default mount options which can be specified in the superblock. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-10-24tune2fs.8: Clarify tune2fs's -i optionTheodore Ts'o1-4/+6
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-09-07mke2fs.8.in: Clarify flex_bg feature descriptionTheodore Ts'o1-1/+6
Add a more explicit description of how specifying the flex_bg file system feature changes the layout of the per-block group metadata. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-09-07tune2fs.8: Document the flex_bg file system option in the man pageTheodore Ts'o1-7/+11
Addresses-Sourceforge-Bug: #2822186 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-05-30Update man pages to include ext4 in the synposis, instead of just "ext2/ext3"Theodore Ts'o1-3/+3
The e2fsprogs programs have historically just said that they operate on ext2 and ext3 file system in their man pages. Update them to say that they also operate on ext4 file systems. Addresses-Launchpad-bug: #381854 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-04-18tune2fs: Clarify manpage regarding how to see the current settingsTheodore Ts'o1-2/+10
Addresses-Debian-Bug: #515693 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-09-07Fix various spelling mistakes in various man pagesTheodore Ts'o1-1/+1
Thanks to A. Costa for pointing these out. Addresses-Debian-Bug: #498100 Addresses-Debian-Bug: #498101 Addresses-Debian-Bug: #498102 Addresses-Debian-Bug: #498103 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-08-29tune2fs: Add support for setting the default hash algorithm for htreeTheodore Ts'o1-1/+9
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-04-17Rename the feature uninit_groups to uninit_bgTheodore Ts'o1-3/+3
Allow the old name of uninit_groups when converting feature names for backwards compatibility for scripts running mke2fs and tune2fs. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-03-30Improve ext4 feature descriptions in mke2fs and tune2fs man pagesAndreas Dilger1-1/+9
Signed-off-by: Andreas Dilger <adilger@dilger.ca> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-03-30Merge branch 'maint'Theodore Ts'o1-0/+1
2008-03-21mke2fs: Clarify man page that -T is interpreted using the current timezoneTheodore Ts'o1-0/+1
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-03-20Make tune2fs uninit block group awareJose R. Santos1-0/+7
Signed-off-by: Jose R. Santos <jrs@us.ibm.com> Signed-off-by: Andreas Dilger <adilger@clusterfs.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-02-28tune2fs: Remove support for clearing the SPARSE_SUPER featureTheodore Ts'o1-6/+0
Clearing SPARSE_SUPER is dangerous; it can result in a filesystem which e2fsck can't fix easily. Since there is very few good reasons for wanting to turn this feature off, disable tune2fs's abiity to do this. Users who really want this can use debugfs. Also, deprecate the tune2fs -s option. Remove it from the man page and usage message. Addresses-Sourceforge-Bug: #1840286 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-02-28Add manpage references to debugfs/tune2fs commandsAndreas Mohr1-0/+1
Make debugfs and tune2fs reference each other in the "SEE ALSO" section. Addresses-Sourceforge-Patches: #1399325 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-02-27Add support for manipulating large_file feature in mke2fs and tune2fsTheodore Ts'o1-0/+4
Previously we just let the kernel and e2fsck do this automatically, but e2fsck will no longer automatically clear the large_file feature. It still isn't really necessary to worry about this feature flag explicitly, but some users seem to care. Addresses-Red-Hat-Bugzilla: #258381 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-02-26Eliminate really obsolete references to Linux 2.0/2.1/2.2 in tune2fs man pageTheodore Ts'o1-14/+0
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-02-26tune2fs: Add support to clear the resize_inode featureTheodore Ts'o1-3/+10
This requires an fsck aftwards. We don't allow setting the resize_inode feature because extensive work to tune2fs or e2fsck to safely relocate blocks is necessary in order to reserve the blocks needed by the resize inode. Addresses-Red-Hat-Bugzilla: #167816 Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-02-18Add support for setting RAID stride and strip-width via mke2fs and tune2fsTheodore Ts'o1-2/+20
This is useful for mballoc to align block allocation on the RAID stripe boundaries. Signed-off-by: Rupesh Thakare <rupesh@clusterfs.com> Signed-off-by: Andreas Dilger <adilger@clusterfs.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-26Add support for the test_fs flagTheodore Ts'o1-0/+19
The test_fs flag is an "ok to be used with test kernel code" flag. It makes it easier for us to determine whether a filesystem should be mounted using ext4 or not. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-07-11Update tune2fs man page to include more discussion of reserved blocksTheodore Ts'o1-2/+10
Addresses-Launchpad-bug: #47817 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2006-09-12Minor man page updates to tune2fs(8) and uuidgen(1)Theodore Ts'o1-4/+4
Addresses Debian Bug: #373004 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2006-05-14Minor edits to tune2fs(8) man pageTheodore Ts'o1-3/+9
Clarify how the -c and -C options work Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2006-03-27Explain in mke2fs and tune2fs man pages that shared journals are not supportedTheodore Ts'o1-0/+5
Addresses Debian Bug: #316040 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2005-05-06Escape hyphens in the e2image and tune2fs man pages so that they show up Theodore Ts'o1-2/+2
correctly after groff processes them.
2005-04-16Fix spelling mistakes in man pages. (Addresses Debian Bugs: #304591, Theodore Ts'o1-2/+2
#304592, #304594, #304597, #304593)
2005-01-24Clarified the tune2fs man page about how the -c option works.Theodore Ts'o1-1/+1
2004-09-19tune2fs.8.in: Add a description of the .journal file, why itTheodore Ts'o1-0/+27
is created, and how e2fsck converts it to an invisible journal. (Addresses Debian Bug #256760)
2004-09-17tune2fs.8.in: Mention that e2fsck -D might be useful afterTheodore Ts'o1-1/+5
setting the dir_index filesystem feature. (Addresses Debian Bug #268148)
2004-04-12Remove TUNE2FS_SKIP_MOUNT_CHECK environment variable support; it isTheodore Ts'o1-14/+0
not needed in the initrd script, and wasn't completely supported anyway.
2004-04-11tune2fs.8.in: Fixed spelling error (Addresses Debian Bug #242995)Theodore Ts'o1-2/+2
2004-04-07tune2fs.c (main): If the environment variableTheodore Ts'o1-0/+14
TUNE2FS_SKIP_MOUNT_CHECK is set, do not try to check if the filesystem is mounted. (update_feature_set): If the compatibility bitmasks were not modified, don't set the superblock dirty bit.
2004-01-31chattr.1.in: Clarify man page.Theodore Ts'o1-1/+2
chattr.1.in, dumpe2fs.8.in, lsattr.1.in, mklost+found.8.in, tune2fs.8.in: List Theodore Ts'o <tytso@alum.mit.edu> as the current maintainer.
2003-12-11tune2fs.8.in: Fix some whitespace errors in the command synopsis.Theodore Ts'o1-2/+1
2003-08-24Adjust description line so that apropos "ext2" or "ext3" will Theodore Ts'o1-2/+3
find all of the e2fsprogs man pages. (Addresses Debian Bug #206845)
2003-04-11tune2fs.8.in, mke2fs.8.in: Document the dir_index filesystemTheodore Ts'o1-2/+5
feature which can be used with the -O option.
2003-03-06Minor man page fixes (Addresses Debian bugs #173612, #175233, Theodore Ts'o1-1/+1
#175113, and #170497)
2002-10-25Update man page to document the journal_* default mount options.Theodore Ts'o1-0/+16
2002-10-15Add support for new feature in ext2/3 filesystems; a default mount options fieldTheodore Ts'o1-0/+48
in the superblock. Added the tune2fs '-o' option to set this field.
2002-09-29mke2fs.8.in, tune2fs.8.in: Clarify manual pages about using theTheodore Ts'o1-2/+3
caret ('^') character to negate feature sets when using the -O option. Define the has_journal feature to avoid confusion about what ^has_journal means.
2002-08-17Update and clarify man pages (addresses Debian Bug #145044).Theodore Ts'o1-1/+1
Let e2fsck allow use of the TEA hash. Mke2fs will no longer abort if it can't zero blocks at the end of the filesystem. (Addresses Debian Bug #155007)
2002-01-27Document the -f flag to tune2fs.Theodore Ts'o1-0/+17
2001-12-26tune2fs.8.in, tune2fs.c (parse_tune2fs_options, main): AddTheodore Ts'o1-0/+20
support for new option, -T, which allows the user to set the last checked time on the filesystem.
2001-09-19tune2fs.8.in: Update man page to reflect the fact that adding orTheodore Ts'o1-1/+9
removing a journal doesn't require running e2fsck.
2001-08-17get_device_by_label.[ch], fsck.c, util.c: New interpret_spec()Andreas Dilger1-1/+34
function in get_device_by_label.c to allow the use of UUID= or LABEL= when creating filesystems which use external journal dev (e.g. mke2fs -J device=LABEL=<journal_label>). tune2fs.c: Use superblock s_journal_uuid to locate an external journal device instead of s_journal_dev when removing it. Allow opening journal devices to set the label and UUID in the ext2 superblock. mke2fs.c, tune2fs.c: Free journal_device after use, as it is malloc'd in interpret spec.