]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
libext2fs: fix ext2fs_close() when MMP is not enabled
authorTheodore Ts'o <tytso@mit.edu>
Tue, 26 May 2015 02:18:43 +0000 (22:18 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 26 May 2015 02:18:43 +0000 (22:18 -0400)
commit766c14289119c6ecc362e0e5093ca82a51b5e1ca
treec689c399737f8c23ef4dde952122f04c12611cb9
parent81f95d43d52adef4d46a9c60d4cbb98ed5043062
libext2fs: fix ext2fs_close() when MMP is not enabled

If MMP support is not configured, then ext2fs_mmp_stop() will always
return the error EXT2_ET_OP_NOT_SUPPORTED.  Unfortunately,
ext2fs_close() and tune2fs call ext2fs_mmp_stop() unconditionally.  So
if the file system does not have MMP enabled, fix ext2fs_mmp_stop() to
return success even if CONFIG_MMP is not enabled, so that
ext2fs_close() and tune2fs doesn't fail for no good reason.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/mmp.c