From: "Darrick J. Wong" Subject: [PATCH v2.3 00/51] e2fsprogs: Add metadata checksumming Date: Sat, 07 Jan 2012 00:32:57 -0800 Message-ID: <20120107083256.25788.41238.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 e6.ny.us.ibm.com ([32.97.182.146]:59980 "EHLO e6.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751660Ab2AGIdB (ORCPT ); Sat, 7 Jan 2012 03:33:01 -0500 Received: from /spool/local by e6.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sat, 7 Jan 2012 03:33:00 -0500 Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay06.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q078Wxtn3465394 for ; Sat, 7 Jan 2012 03:32:59 -0500 Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q078Ww4x002740 for ; Sat, 7 Jan 2012 06:32:59 -0200 Sender: linux-ext4-owner@vger.kernel.org List-ID: Hi all, This patchset adds support in e2fsprogs for attaching crc32c checksums to most of the ext4 metadata objects. A full design document is on the ext4 wiki[1]. Please see the cover letter for the kernel patches for a more thorough summary of this work. Please have a look at the design document and patches, and please feel free to suggest any changes. v2: Checksum the MMP block, store the checksum type in the superblock, include the inode generation in file checksums, and finally solve the problem of limited space in block groups by splitting the checksum into two halves. v2.1: Checksum the reserved parts of the htree tail structure. v2.2: Reincorporate the FS UUID in the bitmap checksum calcuations. Move all disk layout changes to the front and the feature flag enablement to the end of the patch set. Fail journal recovery if revoke block fails checksum. v2.3: Change fsck handling of checksum errors: First ask to clear the item; if the user declines, run the regular checks; if no corrective actions result, ask to reset the checksum. Also, precompute the UUID checksum seed, refactor the inode generation patch into respective patches, and clean up structure member declarations. This patchset has been tested on 3.2.0-rc7 on x64, i386, ppc64, and ppc32. The patches seems to work fine on all four platforms. The patchset is based atop the 1.42 release. --D [1] https://ext4.wiki.kernel.org/articles/e/x/t/Ext4_Disk_Layout_aecb.html