Subject: Questions about NFS stale file handles on NFS server
To: None <tech-kern@netbsd.org>
From: Ruibiao Qiu <ruibiao@arl.wustl.edu>
List: tech-kern
Date: 01/30/2001 14:49:58
Hi, all

I was trying to find out the problem with our NFS server (NetBSD
1.4.1 i386).  There is problem in nfsrv_fhtovp() in
src/sys/nfs/nfs_subs.c.  The trace shows that the server is trying
to finda mount pointer for fsid of (0x040a 078b).  A mount pointer
(mp) is found that matches this fsid, but the next step it fails
on VFS_CHECKEXP() (a macro to mp->mp_op->vfs_checkexp()), and
returns ESTALE.  I wonder what can cause this?    

The 4.4BSD design book says that ESTALE is due to the disagreement
of the generation number and the info in the inode.  But, what is
the generation number in the fhandle_t struct?  Where and how is
the generation number check against the info in the inode?  How
come the generation number is not correct even the export 
directory is the same as it was when it worked?  Thanks for your
advice.

          Regards

	  Ruibiao