Author: rmacklem
Date: Fri Apr  9 01:14:39 2010
New Revision: 206406
URL: http://svn.freebsd.org/changeset/base/206406

Log:
  MFC: r205661
  Patch the regular NFS server so that it returns ESTALE to the client
  for all errors returned by VFS_FHTOVP(). This is required to ensure
  that EIO doesn't get returned to the client when ZFS is used as the
  server file system.

Modified:
  stable/8/sys/nfsserver/nfs_srvsubs.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/nfsserver/nfs_srvsubs.c
==============================================================================
--- stable/8/sys/nfsserver/nfs_srvsubs.c        Fri Apr  9 01:14:11 2010        
(r206405)
+++ stable/8/sys/nfsserver/nfs_srvsubs.c        Fri Apr  9 01:14:39 2010        
(r206406)
@@ -1128,6 +1128,9 @@ nfsrv_fhtovp(fhandle_t *fhp, int lockfla
                }
        }
        error = VFS_FHTOVP(mp, &fhp->fh_fid, vpp);
+       if (error != 0)
+               /* Make sure the server replies ESTALE to the client. */
+               error = ESTALE;
        vfs_unbusy(mp);
        if (error)
                goto out;
_______________________________________________
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