summaryrefslogtreecommitdiff
path: root/misc/e2mmpstatus.8.in
Commit message (Collapse)AuthorAgeFilesLines
* Change "filesystem" to "file system" in the man pagesTheodore Ts'o2021-08-151-13/+13
| | | | | | | To improve consistency, use "file system" in all of the man pages in preference over "filesystem". Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* misc: fix groff formatting nits in man pagesBjarni Ingi Gislason2018-12-111-3/+3
| | | | | | | | | | | | | | | Change a two-fonts macro to a one-font one, when there is only one genuine argument. Separate a punctuation mark or a section number from the only argument to make two for a two-fonts macro. Remove an unneeded escape in front of a horizontal tab character. Correct the unit for distance from 'in' to 'i'. Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* misc: add e2mmpstatus utility via dumpe2fsShuichi Ihara2018-06-221-0/+59
e2mmpstatus is a Multi-Mount Protection (MMP) helper utility to read an MMP block to see if it is being updated. It can also output the latest update time, nodename, and device from the MMP block. This is useful for HA and other maintenance scripts to determine if the filesystem is in use on another node, and which node it is. Signed-off-by: Shuichi Ihara <sihara@ddn.com> Signed-off-by: Li Xi <lixi@ddn.com> Signed-off-by: Wang Shilong <wshilong@ddn.com> Moved e2mmpstatus checking/dumping code to be part of dumpe2fs rather than a standalone program, using the "-m" option to check MMP status, and "-i" to dump info. If dumpe2fs is called as "e2mmpstatus" (and also "mmpstatus" for compatibility reasons), assume "-m" is specified. Re-use the existing MMP block handing routines (with some changes) to check and dump the MMP block, rather than adding duplicate versions. Modify dumpe2fs to exit with a non-zero error code if there is an error while reading the filesystem metadata or MMP block, or if "-m" is used with the "mmp" feature and is in use by another node. Add a configure check for gethostname() rather than depending on _BSD_SOURCE or _XOPEN_SOURCE to be set. Update the f_mmp, m_mmp, m_mmp_bad_csum, and m_mmp_bad_magic tests to use e2mmpstatus to check and dump the MMP state before and after e2fsck is run to verify that the tool is working correctly. Signed-off-by: Andreas Dilger <adilger@dilger.ca> Signed-off-by: Theodore Ts'o <tytso@mit.edu>