Stephen C. Tweedie wrote:
> No.  If we do posix_fallocate(), then there are only two choices:
> we either pre-zero the file contents (in which case we are as well
> doing it from user space), or we record in the inode that the file
> isn't pre-zeroed and so optimise things.

3rd choice: preallocate space with room for interleaved indirection
blocks.  You don't need to record anything in the inode: it's the
indirection blocks that get changed as you fill up the file.  And
they're in exactly the right place.

-- Jamie

Reply via email to