[1167] in SIPB_Linux_Development

home help back first fref pref prev next nref lref last post

Bug in NFS

daemon@ATHENA.MIT.EDU (Jim Haynes)
Tue Nov 14 13:52:24 1995

From: haynes@cats.ucsc.edu (Jim Haynes)
Date: Tue, 14 Nov 1995 10:51:58 -0800
To: linux-dev@MIT.EDU

I spoze nobody there cares about NFS since you use AFS; but there's a bug
that I'm not smart enough to fix and maybe somebody will take up the
challenge...

It's the old Unix trick where you get an invisible temporary file by
creating a file, opening it, unlinking it, writing and reading using
the descriptor you got when you opened it, and when you close it it will
disappear, having been unlinked from the containing directory already.

This works for local disks but fails with a stale file handle error
for NFS-mounted directories.  If the unlink operation is taken out
it works fine; but with unlink in the stale file handle occurs on
the first attempt to write the file.

home help back first fref pref prev next nref lref last post