2.4.0-test5 NFS kernel server with ReiserFS and 2.4.0-test4 NFS

From: Russell Coker (russell@coker.com.au)
Date: Wed Aug 09 2000 - 16:23:22 EST


When my 2.4.0-test5 server crashed (as described in my other email) I had the
filesystem in question mounted via NFS. I pushed the reset button to clear
the server. After the reboot I did the following on the NFS client (which
runs 2.4.0-test4):

rjc@lyta:/mnt/nfs$l
ls: .: Permission denied
rjc@lyta:/mnt/nfs$cd
rjc@lyta:~$cd /mnt/nfs
rjc@lyta:/mnt/nfs$l
ls: .: Permission denied
rjc@lyta:/mnt/nfs$cd ..
rjc@lyta:/mnt/nfs/..$l
ls: nfs: Permission denied
total 5
drwxr-xr-x 9 root root 216 Aug 9 10:13 .
drwxr-xr-x 19 root root 520 Jul 31 22:39 ..
dr-x------ 2 root root 48 Nov 2 1999 cd
dr-x------ 2 root root 48 Nov 2 1999 dos
dr-x------ 2 root root 48 Nov 2 1999 ecd
dr-x------ 2 root root 48 Nov 2 1999 flop
drwxr-xr-x 7 rjc root 144 Jun 9 10:59 games
drwx--x--x 14 rjc root 457 Aug 4 16:39 tmp

>From another window:
rjc@lyta:~$l /mnt
ls: /mnt/nfs: Permission denied
total 5
drwxr-xr-x 9 root root 216 Aug 9 10:13 .
drwxr-xr-x 19 root root 520 Jul 31 22:39 ..
dr-x------ 2 root root 48 Nov 2 1999 cd
dr-x------ 2 root root 48 Nov 2 1999 dos
dr-x------ 2 root root 48 Nov 2 1999 ecd
dr-x------ 2 root root 48 Nov 2 1999 flop
drwxr-xr-x 7 rjc root 144 Jun 9 10:59 games
drwx--x--x 14 rjc root 457 Aug 4 16:39 tmp

"l" is an alias for "ls -al" that I use.

So the problems here are that the NFS permissions are stuffed (it is mode 755
on the server) and that I get a ".." displayed in the path by bash.

After umounting and mounting it again everything worked as expected. I
believe that this is a bug in 2.4.0-test4 NFS client code. I am unable to
easily test the 2.4.0-test5 NFS client code for this issue because of the
lack of PCMCIA support.

Another thing that may be relevant, at the time I reset the server, the
client was repeatedly sending a readdir command for that directory. Maybe
the bug occurs when trying to read a directory when the server is rebooted.

Please let me know if you need more data and I'll do more tests.

-- 
My current location - X marks the spot.
X
X
X

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Aug 15 2000 - 21:00:19 EST