From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id q0U2ep7I189284 for ; Sun, 29 Jan 2012 20:40:52 -0600 Received: from song.cn.fujitsu.com (cn.fujitsu.com [222.73.24.84]) by cuda.sgi.com with ESMTP id PsGKjKC4glqRRINj for ; Sun, 29 Jan 2012 18:40:49 -0800 (PST) Message-ID: <4F2603CC.9080807@cn.fujitsu.com> Date: Mon, 30 Jan 2012 10:43:24 +0800 From: WuBo MIME-Version: 1.0 Subject: Re: Question on xfstest 274 References: <4F230E62.8020004@sandeen.net> In-Reply-To: <4F230E62.8020004@sandeen.net> 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: Eric Sandeen Cc: xfs-oss On 01/28/2012 04:51 AM, Eric Sandeen wrote: > Hi, I was wondering if you could describe your intent for 274 just a little more. > > The test says: > > # preallocation test > > but that is the only comment other than copyright. ;) Maybe the comment is too simple :) > > I see that it does: > > # Make a 1G fs > # Create a single 4k file > # Allocate 1M past the EOF on that file > # Completely fill remaining space, using 2 other files > # Write 8k past EOF on the original file which has blocks past EOF > > but I am not certain what you are testing. I presume that > you are testing the fact that the 1M past EOF should be truncated, > freeing up space, and allowing the 8k write to succeed? > Is that right? Actually I write 8K at the end of 4K(seek=1), and what I want to test is the 8K-write should be succeed because the preallocation 1M. At the mean while, the file should not be truncated. Thanks, wubo > > However, at least on ext4 I noticed that the "fill the fs" > stage does not succeed; perhaps that should be tested as well. > > I can do some similar work on this like I did for 275, but I need > to be sure I understand your original intent for the test, first. > > Thanks, > -Eric > _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs