From patchwork Tue Nov 29 00:29:01 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darrick J. Wong" X-Patchwork-Id: 128133 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 56F7FB6EE8 for ; Tue, 29 Nov 2011 11:29:21 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752436Ab1K2A3U (ORCPT ); Mon, 28 Nov 2011 19:29:20 -0500 Received: from e7.ny.us.ibm.com ([32.97.182.137]:38864 "EHLO e7.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751498Ab1K2A3T (ORCPT ); Mon, 28 Nov 2011 19:29:19 -0500 Received: from /spool/local by e7.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 28 Nov 2011 19:29:18 -0500 Received: from d01relay03.pok.ibm.com ([9.56.227.235]) by e7.ny.us.ibm.com ([192.168.1.107]) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 28 Nov 2011 19:29:04 -0500 Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215]) by d01relay03.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id pAT0T4BQ312326 for ; Mon, 28 Nov 2011 19:29:04 -0500 Received: from d01av01.pok.ibm.com (loopback [127.0.0.1]) by d01av01.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id pAT0T37P019210 for ; Mon, 28 Nov 2011 19:29:04 -0500 Received: from elm3c44.beaverton.ibm.com (elm3c44.beaverton.ibm.com [9.47.69.44]) by d01av01.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id pAT0T1oE019174; Mon, 28 Nov 2011 19:29:02 -0500 Subject: [PATCH 10/50] tune2fs: Rewrite inode bitmap checksums To: Andreas Dilger , Theodore Tso , "Darrick J. Wong" From: "Darrick J. Wong" Cc: Sunil Mushran , Amir Goldstein , Andi Kleen , Mingming Cao , Joel Becker , linux-ext4@vger.kernel.org, Coly Li Date: Mon, 28 Nov 2011 16:29:01 -0800 Message-ID: <20111129002901.17953.53766.stgit@elm3c44.beaverton.ibm.com> In-Reply-To: <20111129002755.17953.19556.stgit@elm3c44.beaverton.ibm.com> References: <20111129002755.17953.19556.stgit@elm3c44.beaverton.ibm.com> User-Agent: StGit/0.15 MIME-Version: 1.0 x-cbid: 11112900-5806-0000-0000-00000E881520 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 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(-) -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/misc/tune2fs.c b/misc/tune2fs.c index 260b040..b53e5da 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; }