Whamcloud - gitweb
misc: zero s_jnl_blocks when adding journal online or removing external journal
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 19 Sep 2014 01:24:26 +0000 (21:24 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 19 Sep 2014 01:24:26 +0000 (21:24 -0400)
commitd9112409a2655851d9c88680764b0bbc591c4a4b
tree47dd3364aa0ee7e79b9a812180e37a4e34ce8942
parent5afdf37b56976e21dd861ae609b25329ac254afe
misc: zero s_jnl_blocks when adding journal online or removing external journal

Erase s_jnl_blocks when removing an external journal, or adding an
internal journal online.  We can't add the backup for the internal
journal because we have no good way to get the indirect block or ETB
addresses, so the best we can do is hope that the user runs e2fsck,
which will correct that.  We are motivated to erase during external
journal removal to state emphatically that there's no journal.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reported-by: thomas_reardon@hotmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/mkjournal.c
misc/tune2fs.c