an interface for filesystem preallocation that doesn't suck?

Rahul Sundaram sundaram at fedoraproject.org
Thu Apr 2 22:22:15 UTC 2009


Eric Sandeen wrote:
> James Ralston wrote:
> 
>> If the latter, is there an interface for fallocate() that doesn't have
>> quite as much FAIL as posix_fallocate()?
> 
> yes, plain ol' fallocate(2), I think:
> 
>        #include <linux/falloc.h>
> 
>        long fallocate(int fd, int mode, loff_t offset, loff_t len);
> 
> but you need a very recent glibc to get it:
> 
> http://sourceware.org/bugzilla/show_bug.cgi?id=7083#c1
> 
> it'd be great if we could get that into F11...
> 
> BTW, ext4, xfs, btrfs, and ocfs2 all support ->fallocate.

Shouldn't we getting the new glibc and file RFE's against RPM, the
torrent clients etc?

Rahul




More information about the fedora-devel-list mailing list