]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2fsprogs-mmp.patch
authorAndreas Dilger <adilger@sun.com>
Sat, 2 Feb 2008 08:48:32 +0000 (01:48 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 11 Feb 2008 03:42:23 +0000 (22:42 -0500)
commitdfa4480ef48e2c8d77ecc54dfaf3d446eb83d9b4
treefe03fb4d38840f3a82329ecde63edf7d5628045b
parent047541260ed015b0ee830f497496a5116e9398e9
e2fsprogs-mmp.patch

Add multi-mount protection support to libext2fs (INCOMPAT_MMP feature).

This 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 only means that it check the MMP block
to see if the filesystem is in use, and mark the filesystem busy while
e2fsck is running on the system.

There is no requirement that e2fsck updates the MMP block in any regular
interval, but e2fsck does this occasionally to provide additional
information to the sysadmin in case of conflict.

Signed-off-by: Kalpak Shah <kalpak@clusterfs.com>
Signed-off-by: Andreas Dilger <adilger@clusterfs.com>
22 files changed:
debugfs/set_fields.c
e2fsck/e2fsck.c
e2fsck/e2fsck.h
e2fsck/pass1.c
e2fsck/pass1b.c
e2fsck/problem.c
e2fsck/problem.h
e2fsck/unix.c
e2fsck/util.c
lib/e2p/feature.c
lib/ext2fs/Makefile.in
lib/ext2fs/bitops.h
lib/ext2fs/closefs.c
lib/ext2fs/ext2_err.et.in
lib/ext2fs/ext2_fs.h
lib/ext2fs/ext2fs.h
lib/ext2fs/mmp.c [new file with mode: 0644]
lib/ext2fs/openfs.c
lib/ext2fs/swapfs.c
misc/mke2fs.c
misc/tune2fs.8.in
misc/tune2fs.c