an interface for filesystem preallocation that doesn't suck?
James Ralston
qralston+ml.redhat-fedora-devel at andrew.cmu.edu
Thu Apr 2 22:37:59 UTC 2009
On 2009-04-02 at 17:00-0500 Eric Sandeen <sandeen at redhat.com> wrote:
> James Ralston wrote:
>
> > [I]s 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
Ah, that's the ticket (no pun intended).
> it'd be great if we could get that into F11...
The rawhide glibc has it, but I'm not sure if it made the cut for the
beta. I'll test later.
> BTW, ext4, xfs, btrfs, and ocfs2 all support ->fallocate.
Yup.
On 2009-04-03 at 03:52+0530 Rahul Sundaram <sundaram at fedoraproject.org> wrote:
> Shouldn't we getting the new glibc and file RFE's against RPM, the
> torrent clients etc?
I intend to start filing bugs against anything I can find that doesn't
use fallocate(), yes. But I needed a better implementation to suggest
than posix_fallocate().
James
More information about the devel
mailing list