svn commit: r206406 - stable/8/sys/nfsserver

Rick Macklem rmacklem at
Fri Apr 9 01:14:40 UTC 2010

Author: rmacklem
Date: Fri Apr  9 01:14:39 2010
New Revision: 206406

  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.

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;
 	if (error)
 		goto out;

More information about the svn-src-stable mailing list