OpenAFS CVS Commit: openafs/src/afs/VNOPS by shadow

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Mon, 04 Jun 2001 18:30:34 EDT


Update of /cvs/openafs/src/afs/VNOPS
In directory GRAND.CENTRAL.ORG:/data/sb/openafs/src/afs/VNOPS

Modified Files:
	afs_vnop_flock.c 
Log Message:
DELTA linux24-use-flock64-instead-of-flock-20010604
AUTHOR semerad@ss1000.ms.mff.cuni.cz

"locking on linux 2.4.x does not work. 2.4.x uses internally 64bit offsets
(start and end of lock) and end is set to 64 bit int max. When it converts
to struct flock, len is set to 0xffffffff (cut off high 32 bits) and afs_lockctl
decides it is byte-range locking. So on 2.4.x kernel there should be used flock64
instead of flock (flock64 is typedef to flock on 64bit systems such as sparc64
and ia64)"


--- DELTA config follows ---
linux24-use-flock64-instead-of-flock-20010604 openafs/src/afs/VNOPS/afs_vnop_flock.c 1.6 1.7