Author: rmacklem
Date: Fri Apr  9 01:33:12 2010
New Revision: 206407
URL: http://svn.freebsd.org/changeset/base/206407

Log:
  MFC: r205663
  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().

Modified:
  stable/8/sys/fs/nfsserver/nfs_nfsdport.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/fs/nfsserver/nfs_nfsdport.c
==============================================================================
--- stable/8/sys/fs/nfsserver/nfs_nfsdport.c    Fri Apr  9 01:14:39 2010        
(r206406)
+++ stable/8/sys/fs/nfsserver/nfs_nfsdport.c    Fri Apr  9 01:33:12 2010        
(r206407)
@@ -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