From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: with ECARTIS (v1.0.0; list xfs); Tue, 06 Nov 2007 11:04:07 -0800 (PST) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by oss.sgi.com (8.12.11.20060308/8.12.10/SuSE Linux 0.7) with ESMTP id lA6J43b7029852 for ; Tue, 6 Nov 2007 11:04:04 -0800 Message-ID: <4730BAA5.1080406@sandeen.net> Date: Tue, 06 Nov 2007 13:04:05 -0600 From: Eric Sandeen MIME-Version: 1.0 Subject: Re: TAKE 972756 - Implement fallocate. References: <20071102024314.9BF3458C38F7@chook.melbourne.sgi.com> <20071106001223.GY66820511@sgi.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: xfs-bounce@oss.sgi.com Errors-to: xfs-bounce@oss.sgi.com List-Id: xfs To: Bhagi rathi Cc: David Chinner , xfs@oss.sgi.com Bhagi rathi wrote: > File is of size 1k. A 4k block is allocated as file-system block size is > 4k. > Preallocation happened from 1k to 256k. Now, it looks to me that we have > un-written extents from 4k to 256k. There is no guarantee that data from 1k > to 4k is all zero'es. Fallocate is updating size. Hence on subsequent read, > we can get garbage from 1k to 4k and all zero'es from 4k to 256k You've tested this and found it to be true? -Eric > Is the expectation here is application should take the responsibility of > zero'ing > data? I still need to through fallocate requirements.