Re: [RFC] Heads up on sys_fallocate()

From: Ulrich Drepper
Date: Mon Mar 05 2007 - 10:24:53 EST


JÃrn Engel wrote:
> The bad news for posix_fallocate() is that even if libc is smart enough
> to write random data, mmap() can still cause problems.

This is not smart, quite to the contrary. The standard guarantees that
all not-yet-written-to places in the file are zero. And if a block has
already been written posix_fallocate cannot change it.

--
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â

Attachment: signature.asc
Description: OpenPGP digital signature