Subject: kern/11618: NFS problems with ..
To: None <gnats-bugs@gnats.netbsd.org>
From: None <nathanw@MIT.EDU>
List: netbsd-bugs
Date: 11/30/2000 10:33:19
>Number:         11618
>Category:       kern
>Synopsis:       NFS clients sometimes see the same inode for . and ..
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 30 10:33:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Nathan J. Williams
>Release:        -current as of september through november.
>Organization:
	Massachvsetts Institvte of Technology
>Environment:
System: NetBSD road-runner.putnam 1.5F NetBSD 1.5F (ROAD-RUNNER) #13: Sat Sep 23 18:11:58 EDT 2000 nathanw@road-runner.putnam:/d/nbsd/src/sys/arch/i386/compile/ROAD-RUNNER i386


>Description:
	From time to time, this NFS client sees .. being the same as ., 
causing trouble with "cd .." and other common operations. Often, the problem
goes away after waiting - some kind of cache issue?

216 road-runner:nathanw>ls -lid . ..
5259623 drwxrwxr-x  3 nathanw  wheel  512 Jul 26 23:22 .
5259623 drwxrwxr-x  3 nathanw  wheel  512 Jul 26 23:22 ..
217 road-runner:nathanw>pwd
/d/scratch/pub/mp3/soundtracks

[wait ten hours]

218 road-runner:nathanw>ls -lid . ..
5259623 drwxrwxr-x   3 nathanw  wheel   512 Jul 26 23:22 .
3638680 drwxrwxr-x  26 nathanw  wheel  1536 Nov 19 23:43 ..


>How-To-Repeat:
	Unclear. The most common operation that demonstrates this problem is
cd'ing around the MP3 storage directories. I have seen problems building xsrc
on my sun 3/80 which seem to be related - transient failure of .. functioning
properly over NFS.

Client is the machine described above: NetBSD/i386 1.5F
Server is: 
NetBSD daffy-duck.putnam 1.5K NetBSD 1.5K (DAFFY-DUCK) #122: Fri Nov 10 20:27:40 EST 2000     nathanw@daffy-duck.putnam:/u1/nbsd/src/sys/arch/alpha/compile/DAFFY-DUCK alpha

Relevant mount -v output from the client:
daffy-duck:/u1 on /d type nfs (writes: sync 0 async 0)

Relevant client fstab entry:
daffy-duck:/u1  /d      nfs     rw,noauto,intr

Relevant mount -v output from the server:
/dev/wd0d on /u1 type ffs (NFS exported, local, soft dependencies, writes: sync 142874 async 1220483)

Relevant server fstab entry:
/dev/wd0d       /u1     ffs     rw,softdep      1 2

Server /etc/exports:
/u1 -maproot=root 10.0.0.21 10.0.0.20
/u1 -maproot=root -alldirs 10.0.0.22 10.0.0.24 10.0.0.25


>Fix:
	Unknown. 
>Release-Note:
>Audit-Trail:
>Unformatted: