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

Claus-Justus Heine (Heine@physik.rwth-aachen.de)
24 Aug 1997 14:37:09 +0200


Linus Torvalds <torvalds@transmeta.com> writes:

>
>
>
> 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,

Thanks!

Claus