Re: attempt to re-implement sillyrename for NFS in 2.1.*

Bill Hawes (whawes@star.net)
Sun, 24 Aug 1997 09:29:43 -0400


Linus Torvalds wrote:
> > i) "rm -f fii" will create some temp file. Ok. Nice. Should do that.
> > ii) "rm -f foo" so what? It either is a kind of no op, as the
> > ".nfs#ino" file already exists. I encountered that case: the
> > nfsd didn't do anything in this case.
> > Or it silently renames "foo" to the same ".nfs#ino" file (foo and
> > fii share the same inode).
>
> Good point. "jiffies" retained,

A minor point ... if we're using the nfs server on the local machine,
the jiffie counter wouldn't necessarily change between two back-to-back
silly renames. Perhaps it would be better to just increment a
silly-rename counter to provide the unique numbering?

Regards,
Bill