From: Theodore Ts'o Subject: Re: [PATCH] ext4: fix extent tree corruption that incurred by hole punch [V2] Date: Thu, 20 Dec 2012 00:39:15 -0500 Message-ID: <20121220053914.GB22145@thunk.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Ashish Sangwan , ext4 development To: Forrest Liu Return-path: Received: from li9-11.members.linode.com ([67.18.176.11]:39446 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750875Ab2LTFjW (ORCPT ); Thu, 20 Dec 2012 00:39:22 -0500 Content-Disposition: inline In-Reply-To: Sender: linux-ext4-owner@vger.kernel.org List-ID: On Thu, Dec 13, 2012 at 11:32:22PM +0800, Forrest Liu wrote: > When depth of extent tree is greater than 1, logical start value > of interior node didn't updated correctly in ext4_ext_rm_idx. > > Signed-off-by: Forrest Liu Applied. BTW, your reproduction case also results in a file system which isn't noticed as being broken by e2fsck. Eric's patch "e2fsck: Fix incorrect interior node logical start values" fixes e2fsck so it handles this. Unfortunately applying his patch seems to uncover a bug in e2fsck when clearing a bad extent node (f_extent_bad_node) which we need to fix so the regression test suite is passing. - Ted