[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Rebasing on Padraig's gnulib fallocate module and cleaning u
From: |
Pádraig Brady |
Subject: |
Re: [PATCH] Rebasing on Padraig's gnulib fallocate module and cleaning up |
Date: |
Mon, 15 Jun 2009 13:48:47 +0100 |
User-agent: |
Thunderbird 2.0.0.6 (X11/20071008) |
Matej Cepl wrote:
> Pádraig Brady, Sat, 13 Jun 2009 01:19:36 +0100:
>> I was thinking that truncate --allocate would call posix_fallocate()
>> which guarantees that the file is allocated even if the filesystem does
>> not support fallocate(). I.E. we would need to add a posix_fallocate()
>> gnulib module that adds the function if not available, and does what
>> glibc does if fallocate() returns ENOSYS (write zeros).
>
> Could I hope in arrival of that anytime soon, or should I try to get
> myself wet with blood of gnulib and make the patch myself?
Please go ahead with copying the glibc posix_fallocate() to
the posix_fallocate gnulib module.
It would depend on the fallocate gnulib module, the
latest version of which I'll keep here:
http://www.pixelbeat.org/patches/gnulib-fallocate.diff
There is an outstanding question on that interface here:
https://bugzilla.redhat.com/show_bug.cgi?id=500487
but that shouldn't be blocking addition of the posix_fallocate
module I think.
cheers,
Pádraig.