share mode locks on directories

Jeremy Allison jra at samba.org
Tue Jul 31 23:59:39 GMT 2007


On Tue, Jul 31, 2007 at 01:51:19PM -0700, Tim Prouty wrote:
> Hi Jeremy,
> 
> I was talking to Volker earlier today about share mode locks on  
> directories, and he said that you may be able to answer some of my  
> questions, since you wrote the most of this code.  Do you have any  
> examples of where it is important to take share mode lock on a  
> directory?  I'm looking at all of the callers of open_directory(),  
> and so far the close_file() is called on the dir's fsp before the  
> calling function returns.  Is it purely for delete on close semantics?

Pretty much. We do have a codepath (not currently turned on
by default) that allows the correct semantics of preventing look-ups
in directories that have delete on close set.

Jeremy.


More information about the samba-technical mailing list