Convert unlink_internals to use delete_on_close?

Volker Lendecke Volker.Lendecke at SerNet.DE
Thu Jan 4 21:38:19 GMT 2007

On Thu, Jan 04, 2007 at 01:29:56PM -0800, Jeremy Allison wrote:
> Eventually I want us to process SMBunlink differently for
> POSIX clients (meaning we do ntcreate/setdelete on close/close
> where the setdelete on close step is always allowed if all
> opens are from POSIX clients).
> Does that make things clearer ?

Not really. The particular requirement you cite is afaik
doable if all opens are done with FILE_SHARE_DELETE. So
posix clients should always use that.

What we want to replicate is the trick that a file can be
newly created with a different identity while some handles
still have the old inode open. This right now would not
work, as we would not actually do the unlink(2) server-side
if there are still handles open. See close.c:183. So this
loop has to be modified to look whether all share mode
entries are posix-style.

Maybe we need to talk about this on the phone, but not
today. Its 10:40pm here :-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url :

More information about the samba-technical mailing list