large file support in 2.6.1

Wayne Davison wayned at
Fri Apr 30 17:05:49 GMT 2004

On Fri, Apr 30, 2004 at 11:45:47AM +0100, Gordon Lack wrote:
> rsync doesn't actually use file-locking, so this test causes it to
> remove large-file support unnecessarily.

Rsync uses range-locking in its daemon code to implement the
"max connections" option.

> A workaround might be to build on a local file system.

I think some simple tweaking of the test function might make the test
better.  The appended C code attempts to create the lock file in /tmp
and falls back to creating the old conftest.dat if that didn't work.
If you try running this program, it should give you an exit status of

-------------- next part --------------
A non-text attachment was scrubbed...
Name: lock.c
Type: text/x-csrc
Size: 610 bytes
Desc: not available
Url :

More information about the rsync mailing list