[OpenAFS-devel] RE: afs and byte-range locking ideas
Jeff Riegel
riegel@almaden.ibm.com
Fri, 14 Dec 2001 12:57:46 -0800
> I've been looking at src/afs/VNOPS/afs_vnop_flock.c for a while. Am I
> correct in thinking that this is the only section of code that implements
> the present byte-range handling scheme? Is this the same code executed by
> the Windows clients?
No, the Windows clients use separate code. Take a look at
src/WINNT/afsd/cm_vnodeops.c, function cm_Lock(). It looks for lock
conflicts in a chain of lock structures stored off the scache entry.
It appears that the Windows client is ignoring the byte range and locking
the whole file in all cases.
-Jeff