Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a80ea34
)
tune2fs: rewrite inode bitmap checksums
author
Darrick J. Wong
<djwong@us.ibm.com>
Mon, 30 Jul 2012 22:58:04 +0000
(18:58 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Mon, 30 Jul 2012 22:58:04 +0000
(18:58 -0400)
When toggling metadata_csum, mark the inode bitmap dirty so that they
are written out 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
patch
|
blob
|
history
diff --git
a/misc/tune2fs.c
b/misc/tune2fs.c
index
46520c2
..
2bd707b
100644
(file)
--- 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;
}