[PATCH] Prefer fallocate if available,
and use posix_fallocate only on Cygwin.
Jamie Lokier
jamie at shareable.org
Mon Feb 25 06:49:16 GMT 2008
Wayne Davison wrote:
> 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.
Ah, I didn't notice that part of the test. Thanks for getting it right :-)
-- Jamie
More information about the rsync
mailing list