Author: rmacklem
Date: Fri Mar 26 01:35:19 2010
New Revision: 205663
URL: http://svn.freebsd.org/changeset/base/205663

Log:
  Patch the experimental NFS server in a manner analagous to r205661
  for the regular NFS server, to ensure that ESTALE is
  returned to the client for all errors returned by VFS_FHTOVP().
  
  MFC after:    2 weeks

Modified:
  head/sys/fs/nfsserver/nfs_nfsdport.c

Modified: head/sys/fs/nfsserver/nfs_nfsdport.c
==============================================================================
--- head/sys/fs/nfsserver/nfs_nfsdport.c        Fri Mar 26 01:30:53 2010        
(r205662)
+++ head/sys/fs/nfsserver/nfs_nfsdport.c        Fri Mar 26 01:35:19 2010        
(r205663)
@@ -2443,6 +2443,9 @@ nfsvno_fhtovp(struct mount *mp, fhandle_
        *credp = NULL;
        exp->nes_numsecflavor = 0;
        error = VFS_FHTOVP(mp, &fhp->fh_fid, vpp);
+       if (error != 0)
+               /* Make sure the server replies ESTALE to the client. */
+               error = ESTALE;
        if (nam && !error) {
                error = VFS_CHECKEXP(mp, nam, &exp->nes_exflag, credp,
                    &exp->nes_numsecflavor, &secflavors);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to