From 9038bdb359e0ee7f0a25d2447e02796f34090725 Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Mon, 30 Jul 2012 18:58:04 -0400 Subject: [PATCH] tune2fs: rewrite inode bitmap checksums When toggling metadata_csum, mark the inode bitmap dirty so that they are written out with new checksums. Signed-off-by: Darrick J. Wong Signed-off-by: Theodore Ts'o --- misc/tune2fs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/misc/tune2fs.c b/misc/tune2fs.c index 46520c2..2bd707b 100644 --- a/misc/tune2fs.c +++ b/misc/tune2fs.c @@ -427,6 +427,9 @@ static void rewrite_metadata_checksums(ext2_filsys fs) fs->flags |= EXT2_FLAG_IGNORE_CSUM_ERRORS; ext2fs_init_csum_seed(fs); rewrite_inodes(fs); + ext2fs_read_bitmaps(fs); + ext2fs_mark_ib_dirty(fs); + fs->flags &= ~EXT2_FLAG_SUPER_ONLY; fs->flags &= ~EXT2_FLAG_IGNORE_CSUM_ERRORS; } -- 1.8.3.1