[PATCH] libc: add fallocate() and fallocate64()

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Tue Sep 9 11:52:10 UTC 2014


On 9 September 2014 00:17, Bernhard Reutner-Fischer
<rep.dot.nop at gmail.com> wrote:
> On Sun, Sep 07, 2014 at 03:33:46PM -0400, basile at opensource.dyc.edu wrote:
>> From: "Anthony G. Basile" <blueness at gentoo.org>
>>
>> We add the Linux-specific function fallocate() which allows the user to
>> directly manipulate allocate space for a file.  fallocate() can operate
>> in different modes, but the default mode is equivalent to posix_fallocate()
>> which is specified in POSIX.1.
>>
>> Recent releases of e2fsprogs 1.42.11 and above expect fallocate64() to be
>> available.
>
> Looks good. A few remarks:

> We should drop the libc_hidden_proto(fallocate{,64}) since we do not have
> internal users (and iff we gain some they should use __libc_fallocate{,64})
> though.

I did that and installed your patch with my amendments.

> I did not test 32bit vs 64bit targets nor all combos of the egrep above.
>
> Care to test and send an updated patch, please?

Thanks for the patch and cheers,


More information about the uClibc mailing list