Re: btrfs fallocate woes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jan 14, 2010 at 7:20 PM, Chris Mason <chris.mason@xxxxxxxxxx> 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
-- 
This message represents the official view of the voices in my head
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux