From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id p4J1gfDC008796 for ; Wed, 18 May 2011 20:42:49 -0500 Received: from ZenIV.linux.org.uk (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id C4F10CE4E83 for ; Wed, 18 May 2011 18:42:40 -0700 (PDT) Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [195.92.253.2]) by cuda.sgi.com with ESMTP id TUSfq7UOqCIGCSG1 for ; Wed, 18 May 2011 18:42:40 -0700 (PDT) Date: Wed, 18 May 2011 18:41:51 -0700 From: Joel Becker Subject: Re: [XFS Tests Punch Hole 2/3 v3] XFS TESTS: Add Fallocate Punch Hole Test Routines Message-ID: <20110519014149.GA11278@noexit.corp.google.com> References: <4DD43300.6010908@linux.vnet.ibm.com> <20110519013144.GF32466@dastard> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20110519013144.GF32466@dastard> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: Dave Chinner Cc: linux-fsdevel , Ext4 Developers List , xfs-oss , Eric Sandeen , Allison Henderson On Thu, May 19, 2011 at 11:31:44AM +1000, Dave Chinner wrote: > > +# > > +# This test is successful when the following conditions are met: > > +# - ls shows that the number of blocks occupied by the file > > +# has decreased by the number of blocks punched out. > > There's no guarantee that a filesystem will punch the number of > blocks you expect. Cluster allocated filesystems like ocfs2 are certainly going to punch some multiple of clusters, not exact blocks. Eg if the hole is punched in the middle of a cluster. Joel -- Life's Little Instruction Book #464 "Don't miss the magic of the moment by focusing on what's to come." http://www.jlbec.org/ jlbec@evilplan.org _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs