mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-11-23 18:14:25 +08:00
32b8802aa5
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>
238 lines
3.9 KiB
Plaintext
238 lines
3.9 KiB
Plaintext
autom4te.cache
|
|
build
|
|
build.profiled
|
|
build.static
|
|
FILES
|
|
^core
|
|
*~
|
|
patches
|
|
Makefile
|
|
*.bak
|
|
*.diff
|
|
*.dSYM
|
|
*.o
|
|
*.a
|
|
*.orig
|
|
*.patch
|
|
*.pc
|
|
*.rej
|
|
*.swp
|
|
00[0-9][1-9]*.patch
|
|
MCONFIG
|
|
asm_types.h
|
|
config.log
|
|
config.status
|
|
cscope.*
|
|
debugfs/extent_cmds.c
|
|
debugfs/debug_cmds.c
|
|
debugfs/debugfs
|
|
debugfs/debugfs.8
|
|
debugfs/extent_cmds.c
|
|
debugfs/tst_set_fields
|
|
doc/libext2fs.aux
|
|
doc/libext2fs.cp
|
|
doc/libext2fs.dvi
|
|
doc/libext2fs.fn
|
|
doc/libext2fs.fns
|
|
doc/libext2fs.info
|
|
doc/libext2fs.ky
|
|
doc/libext2fs.log
|
|
doc/libext2fs.pg
|
|
doc/libext2fs.toc
|
|
doc/libext2fs.tp
|
|
doc/libext2fs.vr
|
|
e2fsck/crc32table.h
|
|
e2fsck/e2fsck
|
|
e2fsck/e2fsck.8
|
|
e2fsck/e2fsck.conf.5
|
|
e2fsck/e2fsck.shared
|
|
e2fsck/e2fsck.static
|
|
e2fsck/gen_crc32table
|
|
e2fsck/prof_err.c
|
|
e2fsck/prof_err.h
|
|
e2fsck/tst_crc32
|
|
e2fsck/tst_problem
|
|
e2fsck/tst_refcount
|
|
e2fsck/tst_region
|
|
e2fsprogs.spec
|
|
ext2ed/ext2ed.conf
|
|
ext2ed/ext2ed.8
|
|
intl/charset.alias
|
|
intl/libgnuintl.h
|
|
intl/libintl.a
|
|
intl/libintl.h
|
|
intl/ref-add.sed
|
|
intl/ref-del.sed
|
|
lib/blkid/blkid.h
|
|
lib/blkid/blkid.pc
|
|
lib/blkid/blkid_types.h
|
|
lib/blkid/libblkid.3
|
|
lib/blkid/subdirs
|
|
lib/blkid/test_probe
|
|
lib/blkid/tests/*.ok
|
|
lib/blkid/tests/*.out
|
|
lib/blkid/tests/tmp
|
|
lib/blkid/tst_cache
|
|
lib/blkid/tst_dev
|
|
lib/blkid/tst_devname
|
|
lib/blkid/tst_devno
|
|
lib/blkid/tst_getsize
|
|
lib/blkid/tst_probe
|
|
lib/blkid/tst_read
|
|
lib/blkid/tst_resolve
|
|
lib/blkid/tst_save
|
|
lib/blkid/tst_tag
|
|
lib/blkid/tst_types
|
|
lib/config.h
|
|
lib/dirpaths.h
|
|
lib/e2p/e2p.pc
|
|
lib/e2p/subdirs
|
|
lib/e2p/tst_feature
|
|
lib/e2p/tst_ostype
|
|
lib/et/com_err.pc
|
|
lib/et/compile_et
|
|
lib/et/subdirs
|
|
lib/ext2fs/crc32c_table.h
|
|
lib/ext2fs/debug_cmds.c
|
|
lib/ext2fs/ext2_err.c
|
|
lib/ext2fs/ext2_err.et
|
|
lib/ext2fs/ext2_err.h
|
|
lib/ext2fs/ext2_types.h
|
|
lib/ext2fs/ext2fs.pc
|
|
lib/ext2fs/extent_cmds.c
|
|
lib/ext2fs/gen_crc32ctable
|
|
lib/ext2fs/subdirs
|
|
lib/ext2fs/tst_badblocks
|
|
lib/ext2fs/tst_bitmaps
|
|
lib/ext2fs/tst_bitmaps_cmd.c
|
|
lib/ext2fs/tst_bitmaps_out
|
|
lib/ext2fs/tst_bitops
|
|
lib/ext2fs/tst_cmds.c
|
|
lib/ext2fs/tst_csum
|
|
lib/ext2fs/tst_crc32c
|
|
lib/ext2fs/tst_digest_encode
|
|
lib/ext2fs/tst_getsectsize
|
|
lib/ext2fs/tst_getsize
|
|
lib/ext2fs/tst_icount
|
|
lib/ext2fs/tst_inline
|
|
lib/ext2fs/tst_inline_data
|
|
lib/ext2fs/tst_inode_size
|
|
lib/ext2fs/tst_iscan
|
|
lib/ext2fs/tst_libext2fs
|
|
lib/ext2fs/tst_sha256
|
|
lib/ext2fs/tst_sha512
|
|
lib/ext2fs/tst_super_size
|
|
lib/ext2fs/tst_types
|
|
lib/quota/subdirs
|
|
lib/ss/mk_cmds
|
|
lib/ss/ss.pc
|
|
lib/ss/ss_err.c
|
|
lib/ss/ss_err.h
|
|
lib/ss/std_rqs.c
|
|
lib/ss/subdirs
|
|
lib/ss/test.diff
|
|
lib/ss/test_cmd.c
|
|
lib/ss/test_out
|
|
lib/ss/test_ss
|
|
lib/support/prof_err.c
|
|
lib/support/prof_err.h
|
|
lib/support/subdirs
|
|
lib/uuid/subdirs
|
|
lib/uuid/tst_uuid
|
|
lib/uuid/uuid.3
|
|
lib/uuid/uuid.h
|
|
lib/uuid/uuid.pc
|
|
lib/uuid/uuid_clear.3
|
|
lib/uuid/uuid_compare.3
|
|
lib/uuid/uuid_copy.3
|
|
lib/uuid/uuid_generate.3
|
|
lib/uuid/uuid_is_null.3
|
|
lib/uuid/uuid_parse.3
|
|
lib/uuid/uuid_time
|
|
lib/uuid/uuid_time.3
|
|
lib/uuid/uuid_types.h
|
|
lib/uuid/uuid_unparse.3
|
|
misc/badblocks
|
|
misc/badblocks.8
|
|
misc/base_device
|
|
misc/base_device.out
|
|
misc/blkid
|
|
misc/blkid.8
|
|
misc/chattr
|
|
misc/chattr.1
|
|
misc/default_profile.c
|
|
misc/dumpe2fs
|
|
misc/dumpe2fs.8
|
|
misc/e2freefrag
|
|
misc/e2freefrag.8
|
|
misc/e2fuzz
|
|
misc/e2image
|
|
misc/e2image.8
|
|
misc/e2initrd_helper
|
|
misc/e2label.8
|
|
misc/e2mmpstatus
|
|
misc/e2mmpstatus.8
|
|
misc/e2undo
|
|
misc/e2undo.8
|
|
misc/e4crypt
|
|
misc/e4crypt.8
|
|
misc/e4defrag
|
|
misc/e4defrag.8
|
|
misc/ext4.5
|
|
misc/filefrag
|
|
misc/filefrag.8
|
|
misc/findfs.8
|
|
misc/findsuper
|
|
misc/fsck
|
|
misc/fsck.8
|
|
misc/fuse2fs
|
|
misc/fuse2fs.1
|
|
misc/logsave
|
|
misc/logsave.8
|
|
misc/lsattr
|
|
misc/lsattr.1
|
|
misc/mke2fs
|
|
misc/mke2fs.8
|
|
misc/mke2fs.conf.5
|
|
misc/mke2fs.conf
|
|
misc/mklost+found
|
|
misc/mklost+found.8
|
|
misc/prof_err.c
|
|
misc/prof_err.h
|
|
misc/profile.h
|
|
misc/tune2fs
|
|
misc/tune2fs.8
|
|
misc/uuidd
|
|
misc/uuidd.8
|
|
misc/uuidgen
|
|
misc/uuidgen.1
|
|
ncscope.*
|
|
parse-types.log
|
|
po/Makefile.in
|
|
po/POTFILES
|
|
public_config.h
|
|
resize/resize2fs
|
|
resize/resize2fs.8
|
|
resize/test_extent
|
|
resize/test_extent.out
|
|
tags
|
|
TAGS
|
|
tests/progs/test_icount
|
|
tests/progs/test_icount_cmds.c
|
|
tests/progs/crcsum
|
|
tests/*.ok
|
|
tests/*.failed
|
|
tests/*.log
|
|
tests/*.tmp
|
|
tests/*.slow
|
|
tests/test_data.tmp
|
|
tests/mke2fs.conf
|
|
tests/test_script
|
|
tests/test_one
|
|
util/dirpaths.h
|
|
util/gen-tarball
|
|
util/install-symlink
|
|
util/subst
|
|
util/subst.conf
|
|
Meta
|