xfs
[Top] [All Lists]

Re: TAKE 972756 - Implement fallocate.

To: Bhagi rathi <jahnu77@xxxxxxxxx>, David Chinner <dgc@xxxxxxx>
Subject: Re: TAKE 972756 - Implement fallocate.
From: Nathan Scott <nscott@xxxxxxxxxx>
Date: Wed, 07 Nov 2007 09:38:53 +1100
Cc: xfs@xxxxxxxxxxx
In-reply-to: <20071106204100.GW995458@xxxxxxx>
Organization: Aconex
References: <20071102024314.9BF3458C38F7@xxxxxxxxxxxxxxxxxxxxxxx> <cc7060690711051042h5c39c540mf60f95e2f67c7bd7@xxxxxxxxxxxxxx> <20071106001223.GY66820511@xxxxxxx> <cc7060690711060927n1ea8a489n9f02029a11b73b00@xxxxxxxxxxxxxx> <20071106204100.GW995458@xxxxxxx>
Reply-to: nscott@xxxxxxxxxx
Sender: xfs-bounce@xxxxxxxxxxx
On Wed, 2007-11-07 at 07:41 +1100, David Chinner wrote:
> >  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. 

That guarantee does exist - when the initial 1K block write is done, the
end of the block is zeroed (by the kernel write path).  This is always
done (guaranteed) and is required independently to unwritten extents.

cheers.

-- 
Nathan


<Prev in Thread] Current Thread [Next in Thread>