open/unlink/write: 2.1.42 vs. 2.1.51

Christoph Trautwein (trautwein@scientist.com)
Mon, 25 Aug 1997 14:02:45 +0200


In contrast to 2.1.42 I get an

NFS stale file handle

when a program uses the sequence:
open()
unlink()
write()
on a file that's on a nfs filesystem.

The error can be seen when using "mail" or "ypbind"
on a diskless client. Both programs use the command
sequence shown above to create a lock file in /tmp.
(ypbind can be started with "-ipc" to prevent this
error.) I think it's an error with nfs:

As long as a process has an open file handle it
should not be possible to really unlink the file.

That's how local file systems behave.
What's your opinion?

Christoph Trautwein