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
"1".
..wayne..
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lock.c
Type: text/x-csrc
Size: 610 bytes
Desc: not available
Url :
http://lists.samba.org/archive/rsync/attachments/20040430/1497c040/lock.bin