CVS update: samba/source/locking

Jeremy Allison jra at au2.samba.org
Fri Mar 30 18:57:24 EST 2001


Date:	Friday March 30, 2001 @ 18:57
Author:	jra

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

Modified Files:
	locking.c 
Log Message:
This is a big, rather ugly patch. Whilst investigating the files not truncated
when copying to a full disk problem, I discovered that we were not allowing
the delete on close flag to be set properly, this led to other things, and
after investigation of the proper delete on close semantics and their relationship
to the file_share_delete flag I discovered there were some cases where we
weren't doing the deny modes properly. And this after only 5 years working
on them..... :-) :-).
So here's the latest attempt. I realised the delete on close flag needs to
be set across all smbds with a dev/ino pair open - in addition, the delete
on close flag, allow share delete and delete access requested all need to
be stored in the share mode tdb.
The "delete_on_close" entry in the fsp struct is now redundant and should
really be removed. This may also mean we can get rid of the "iterate_fsp"
calls that I didn't like adding in the first place. Whilst doing this patch,
I also discovered we needed to do the se_map_generic() call for file opens
and POSIX ACL mapping, so I added that also.
This code, although ugly, now passes the deny mode torture tests plus the
delete on close tests I added. I do need to add one more multiple connection
delete on close test to make sure I got the semantics exactly right, plus we
should also (as Andrew suggested) move to random testing here.
 
The good news is that NT should now correctly delete the file on disk
full error when copying to a disk :-).
 
Jeremy.





More information about the samba-cvs mailing list