[Csync2] Can't stat large files

Martin Bene martin.bene at icomedias.com
Tue Feb 27 16:33:16 CET 2007


I've just run into the same problem as described in a couple of mails
dating back to last july. System type is gentoo, so csync2 was built
from source.

Filesystem in my case is not reiserfs but xfs, stat for the file works
just fine outside of csync2 

The failing statement is "lstat_strict(prefixsubst(file), &st)" on line
214 in check.c. 

Errno / strerror showed this:

75 ==> Value too large for defined data type

Workaround:
I added "AC_SYS_LARGEFILE" to configure.ac, which adds some lines to
config.h:

/* Number of bits in a file offset, on hosts where this is settable. */
#define _FILE_OFFSET_BITS 64

After recompling the error seems to be gone.

Bye, Martin


More information about the Csync2 mailing list