1.3.72: NFS cache problem with deleted directories

Robert H. de Vries (rhdv@fss.fokker.nl)
Mon, 11 Mar 1996 15:32:16 +0100 (MET)


I have found an anomaly when deleting directories on mounted NFS filesystems.
The problem is that when you ask the contents of a deleted directory
you just get "total 0" instead of something like
"ls: .: Stale NFS file handle".

Repeat by:

ahost:~$ mkdir foo
bhost:~$ cd foo
linux:~$ cd foo
ahost:~$ rmdir foo
linux:~/foo$ ls -a
bhost:~/foo$ ls
ls: .: Stale NFS file handle
linux:~/foo$ touch bar
touch: foo: Stale NFS file handle
linux:~/foo$ ls -la
total 0
linux:~/foo$ cd ..
linux:~$ uname -a
Linux hobbes 1.3.72 #5 Fri Mar 8 17:46:01 MET 1996 i586

ahost: any machine (Linux, SunOS, IRIX)
bhost: a computer running either SunOS or IRIX.

The kernel shows this behaviour at least since version 1.3.69.

Robert

-- 
Robert H. de Vries
Simulation and Robotics
Fokker Space B.V.
e-mail: rhdv@fss.fokker.nl
   tel: (+31)71-5245464
   fax: (+31)71-5245498