From: "Aneesh Kumar K.V" Subject: Re: i_size error with the latest patchqueue Date: Thu, 31 Jul 2008 22:29:45 +0530 Message-ID: <20080731165945.GB20838@skywalker> References: <20080731161058.GA20838@skywalker> <20080731164728.GF11632@mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: ext4 To: Theodore Tso Return-path: Received: from e28smtp01.in.ibm.com ([59.145.155.1]:44966 "EHLO e28esmtp01.in.ibm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752921AbYGaRAD (ORCPT ); Thu, 31 Jul 2008 13:00:03 -0400 Received: from d28relay04.in.ibm.com (d28relay04.in.ibm.com [9.184.220.61]) by e28esmtp01.in.ibm.com (8.13.1/8.13.1) with ESMTP id m6VH00wT011479 for ; Thu, 31 Jul 2008 22:30:00 +0530 Received: from d28av03.in.ibm.com (d28av03.in.ibm.com [9.184.220.65]) by d28relay04.in.ibm.com (8.13.8/8.13.8/NCO v9.0) with ESMTP id m6VH00f01859748 for ; Thu, 31 Jul 2008 22:30:00 +0530 Received: from d28av03.in.ibm.com (loopback [127.0.0.1]) by d28av03.in.ibm.com (8.13.1/8.13.3) with ESMTP id m6VGxxSk005136 for ; Thu, 31 Jul 2008 22:29:59 +0530 Content-Disposition: inline In-Reply-To: <20080731164728.GF11632@mit.edu> Sender: linux-ext4-owner@vger.kernel.org List-ID: On Thu, Jul 31, 2008 at 12:47:28PM -0400, Theodore Tso wrote: > On Thu, Jul 31, 2008 at 09:40:59PM +0530, Aneesh Kumar K.V wrote: > > Hi Ted, > > > > I haven't yet looked at whether it is kernel or e2fsck bug. > > But I am having this with the latest patch queue when running > > fsstress. The fsstress have falloc added as a supported operation. > > So it is mostly to do with fallocate. Architecture is x86. > > Part of this is definitely an e2fsck bug, because e2fsck isn't > currently checking the EXT2_EXTENT_FLAGS_UNINIT flag. In line 1715 of > e2fsck/pass1.c: > > start_block = pb->last_block = extent.e_lblk + extent.e_len - 1; > > We shouldn't be setting pb->last_block if this is an unitialized > extent. > > I suspect this is also related though to the issue you raised in the > "e2fsprogs and blocks outside i_size" thread about two weeks ago. So > even after we fix this e2fsck bug, we may still have some fsstress > failures until we decide how to deal with that particular issue. > > Do you have a quickie program that calls fallocate to preallocate > space for a particular program easily to hand? If not, I can write > one in about 5-10 minutes, but if you have one written already, it'll > save me the effort. Thanks!! http://lkml.org/lkml/2007/7/13/175 -aneesh