From: "Darrick J. Wong" Subject: [PATCH 10/47] tune2fs: Rewrite inode bitmap checksums Date: Sat, 08 Oct 2011 00:34:19 -0700 Message-ID: <20111008073419.17888.22968.stgit@elm3c44.beaverton.ibm.com> References: <20111008073315.17888.22132.stgit@elm3c44.beaverton.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: Sunil Mushran , Amir Goldstein , Andi Kleen , Mingming Cao , Joel Becker , linux-ext4@vger.kernel.org, Coly Li To: Andreas Dilger , Theodore Tso , "Darrick J. Wong" Return-path: Received: from e38.co.us.ibm.com ([32.97.110.159]:51542 "EHLO e38.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751667Ab1JHHhN (ORCPT ); Sat, 8 Oct 2011 03:37:13 -0400 Received: from d03relay03.boulder.ibm.com (d03relay03.boulder.ibm.com [9.17.195.228]) by e38.co.us.ibm.com (8.14.4/8.13.1) with ESMTP id p987Q6Kw001121 for ; Sat, 8 Oct 2011 01:26:06 -0600 Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by d03relay03.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p987YMth184376 for ; Sat, 8 Oct 2011 01:34:22 -0600 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p987YKhU025094 for ; Sat, 8 Oct 2011 01:34:22 -0600 In-Reply-To: <20111008073315.17888.22132.stgit@elm3c44.beaverton.ibm.com> Sender: linux-ext4-owner@vger.kernel.org List-ID: When toggling metadata_csum, mark the inode bitmap dirty so that they are written out with new checksums. Signed-off-by: Darrick J. Wong --- misc/tune2fs.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/misc/tune2fs.c b/misc/tune2fs.c index 92d17e9..bff7e64 100644 --- a/misc/tune2fs.c +++ b/misc/tune2fs.c @@ -426,6 +426,9 @@ static void rewrite_metadata_checksums(ext2_filsys fs) { fs->flags |= EXT2_FLAG_IGNORE_CSUM_ERRORS; 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; }