Whamcloud - gitweb
tune2fs: warn if the filesystem journal is dirty
authorJim Garlick <garlick@llnl.gov>
Mon, 30 Nov 2015 17:13:39 +0000 (12:13 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 30 Nov 2015 17:13:39 +0000 (12:13 -0500)
commitc5b3ae7fb5d58dd12a1e02c2443bad32c8a76150
tree6e09c0915cf99740daa762c9beea7a2326971cc7
parentf449486d631987983b4275d246b7bbbb551f3235
tune2fs: warn if the filesystem journal is dirty

Running tune2fs on a filesystem with an unrecovered journal can
cause the tune2fs settings changes in the superblock to be reverted
when the journal is replayed if it contains an uncommitted copy of
the superblock.  Print a warning if this is detected so that the
user isn't surprised if it happens.

Signed-off-by: Jim Garlick <garlick@llnl.gov>
Updated message printed to include steps to replay journal.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/tune2fs.c