From: "Darrick J. Wong" Subject: [PATCH 17/47] tune2fs: Rewrite block bitmap checksums Date: Sat, 08 Oct 2011 00:35:04 -0700 Message-ID: <20111008073504.17888.77835.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 e9.ny.us.ibm.com ([32.97.182.139]:51199 "EHLO e9.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751747Ab1JHHhp (ORCPT ); Sat, 8 Oct 2011 03:37:45 -0400 Received: from d01relay07.pok.ibm.com (d01relay07.pok.ibm.com [9.56.227.147]) by e9.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id p986xDeM003901 for ; Sat, 8 Oct 2011 02:59:13 -0400 Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by d01relay07.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p987Z7KO2830516 for ; Sat, 8 Oct 2011 03:35:07 -0400 Received: from d01av04.pok.ibm.com (loopback [127.0.0.1]) by d01av04.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p987Z6Uu014737 for ; Sat, 8 Oct 2011 03:35:06 -0400 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 block bitmap dirty so that it gets written with new checksums. Signed-off-by: Darrick J. Wong --- misc/tune2fs.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/misc/tune2fs.c b/misc/tune2fs.c index bff7e64..24040e6 100644 --- a/misc/tune2fs.c +++ b/misc/tune2fs.c @@ -428,6 +428,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; }