[PATCH] Prefer fallocate if available, and use posix_fallocate only on Cygwin.

Wayne Davison wayned at samba.org
Sun Feb 24 21:23:44 GMT 2008


On Sun, Feb 24, 2008 at 04:29:17PM +0000, Jamie Lokier wrote:
> When compiled on a Linux system which doesn't have SYS_fallocate
> (because it doesn't have a very recent kernel), but does have
> posix_fallocate (because Glibc has had it for a while), I think that
> patch will call Glibc's very slow function.

No, it only uses posix_fallocate() on Cygwin at present (see the
configure test for an efficient posix_fallocate() that only passes
for Cygwin systems).  My Linux system does not have SYS_fallocate
available, and the --preallocate option is disabled.

..wayne..


More information about the rsync mailing list