Whamcloud - gitweb
tune2fs: Fix "tune2fs -j <dev>" for extent-enabled filesystems
authorTheodore Ts'o <tytso@mit.edu>
Tue, 25 Aug 2009 14:07:16 +0000 (10:07 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 25 Aug 2009 14:07:16 +0000 (10:07 -0400)
commit8bafedbf4a6889b20e119a667fc243909d283f85
tree61b810423fe20eb92bd20b16f9fbb708b5603373
parent31b5a2b9612509dd3cfb8da698a652f5b770c4e9
tune2fs: Fix "tune2fs -j <dev>" for extent-enabled filesystems

For filesystms that have the extent feature enabled, we need to grab
the use EXT2_IOC_GETFLAGS so that we don't accidentally end up trying
to request clearing the EXT2_EXTENT_FL, which is not supported and
causes the tune2fs -j error out.

Also fix the error returning in ext2fs_add_journal_inode() so it
returns a proper error code if the fstat() or ioctl() calls fail.

Addresses-Launchpad-bug: #416648

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