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

Linus Torvalds (torvalds@transmeta.com)
Sat, 23 Aug 1997 22:09:01 -0700 (PDT)


On 24 Aug 1997, Claus-Justus Heine wrote:
>
> Yeah, got that. But use the jiffies:
>
> #!/bin/sh
> touch foo
> ln foo fii
> tail -f foo
> tail -f fii
> rm -f fii
> rm -f foo
>
> AND NOW:
> Using the i_ino will result in:
>
> 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,

Linus