Re: btrfs fallocate woes

Paul Komkoff
2010-01-14T20:33:30Z

On Thu, Jan 14, 2010 at 7:20 PM, Chris Mason <chris.mason@oracle.com> wrote:
> The file size should still be 4 bytes I think, even if we allocate 4096.

Yes, to clarify - I changed the code to be
fallocate(fd, 0, 0, 4);
and then
posix_fallocate(fd, 0, 4);

(which is the same I guess)

and tried it on different filesystems, and on btrfs I ended up with
entire block (of zeroes).
If it's fixed in latest tree it's fine, I guess that fix isn't in
fedora's 2.6.32.3