2.2.5pre1: unlink design flaw

Jeremy Allison jra at samba.org
Thu Jun 13 12:40:37 GMT 2002


On Thu, Jun 13, 2002 at 08:28:08PM +0200, Simo Sorce wrote:
> 
> I can't remember just now, but can you rename it while open?

Under POSIX, yes.

> If you can, then you may rename the file on unlink to a very rare name
> and then delete oin close().

This is what NFS does.

> > I have no idea what posix says about open and unlink, but I'm guessing if
> > it's been unlinked it shouldn't prevent creating a new file (or dir).
> 
> Maybe jeremy (our posix man :-P) can tell us this one.

Yes, you can unlink whilst open and then create a new dir or
file with the same name, it will occupy different disk space.

Jeremy.




More information about the samba-technical mailing list