CVS update: samba/source/locking

Jeremy Allison jra at samba.org
Fri Apr 28 09:28:56 EST 2000


Date:	Friday April 28, 2000 @ 9:28
Author:	jra

Update of /data/cvs/samba/source/locking
In directory samba:/tmp/cvs-serv754/locking

Modified Files:
	brlock.c locking.c 
Log Message:
Ok - this is more subtle than it looks :-).
When a file is being closed, once it passes the fnum and tid tests then
the locking context should be ignored when removing all locks. This is 
what is done in the brl close case, but when you have outstanding
POSIX locks, then you cannot remove all the brl locks in one go, you
have to get the lock list and call do_unlock individually. As this
uses global_smbpid as the locking context, you need to make sure
that this is set correctly for the specific lock being removed. I
now do this by storing the smbpid in each entry in the unlock list returned from
the query call. I removed the smbpid from fsp (not needed) and
things seem ok (even with the stupid smbpid tricks that smbtorture plays :-).

Jeremy.



More information about the samba-cvs mailing list