[PATCH] lib/tdb: remove 31 bit limit on 64-bit file offset systems

tridge at samba.org tridge at samba.org
Wed Aug 5 21:17:13 MDT 2009


applied, thanks!

Rusty Russell writes:
 > There is one signedness issue in tdb which prevents traverses of TDB records
 > over the 2G offset on systems which support 64 bit file offsets.  This fixes
 > that case.
 > 
 > On systems with 32 bit offsets, expansion and fcntl locking on these records
 > will fail anyway.  SAMBA already does '#define _FILE_OFFSET_BITS 64' in
 > config.h (on my 32-bit x86 Linux system at least) to get 64 bit file offsets.
 > 
 > Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>



More information about the samba-technical mailing list