From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Aneesh Kumar K. V" Subject: Re: btrfs fallocate woes Date: Thu, 14 Jan 2010 23:56:36 +0530 Message-ID: <87y6k0lezn.fsf@linux.vnet.ibm.com> References: <715ea5c11001140328g6198447axce1ba884a6e6fb96@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-btrfs To: Roland Dreier , Paul Komkoff Return-path: In-Reply-To: List-ID: On Thu, 14 Jan 2010 09:27:38 -0800, Roland Dreier 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