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. _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils