Whamcloud - gitweb
tune2fs: rewrite block bitmap checksums
authorDarrick J. Wong <djwong@us.ibm.com>
Mon, 30 Jul 2012 23:12:04 +0000 (19:12 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 30 Jul 2012 23:12:04 +0000 (19:12 -0400)
When toggling metadata_csum, mark the block bitmap dirty so that it
gets written with new checksums.

Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/tune2fs.c

index 2bd707b..826d9cc 100644 (file)
@@ -429,6 +429,7 @@ static void rewrite_metadata_checksums(ext2_filsys fs)
        rewrite_inodes(fs);
        ext2fs_read_bitmaps(fs);
        ext2fs_mark_ib_dirty(fs);
+       ext2fs_mark_bb_dirty(fs);
        fs->flags &= ~EXT2_FLAG_SUPER_ONLY;
        fs->flags &= ~EXT2_FLAG_IGNORE_CSUM_ERRORS;
 }