Re: btrfs fallocate woes

Aneesh Kumar K. V
2010-01-14T18:26:36Z

On Thu, 14 Jan 2010 09:27:38 -0800, Roland Dreier <rdreier@cisco.com> wrote:
>
> > if you run it on ext4, it will create a 4-byte file with "test" in it.
> > On btrfs, however, the file size would be 4096, and the remaining
> > space will be filled with zeroes.
>
> My fallocate man page says:
>
> Because allocation is done in block size chunks, fallocate() may
> allocate a larger range than that which was specified.
>

But with zero as the mode value it should not have updated
i_size. Looking at the latest linus tree it seems to be doing the right
thing

-aneesh