summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Smith <kensmith@FreeBSD.org>2008-12-19 04:02:16 +0000
committerKen Smith <kensmith@FreeBSD.org>2008-12-19 04:02:16 +0000
commited37bbed638d48b4ea106d1a9a6c508216e2b2b6 (patch)
treec9eedc8ecdcafb131d86a4ecb3622adefba09a79
parent71d12cc165aa9fe8dce4944e1a4ab85ddff6c15e (diff)
Notes
-rw-r--r--sys/nfsserver/nfs_serv.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/nfsserver/nfs_serv.c b/sys/nfsserver/nfs_serv.c
index a069790138cc..7c2b7d76d59e 100644
--- a/sys/nfsserver/nfs_serv.c
+++ b/sys/nfsserver/nfs_serv.c
@@ -3600,9 +3600,12 @@ again:
* Probe one of the directory entries to see if the filesystem
* supports VGET.
*/
- if (VFS_VGET(vp->v_mount, dp->d_fileno, LK_EXCLUSIVE, &nvp) ==
- EOPNOTSUPP) {
- error = NFSERR_NOTSUPP;
+ error = VFS_VGET(vp->v_mount, dp->d_fileno, LK_EXCLUSIVE, &nvp);
+ if (error) {
+ if (error == EOPNOTSUPP)
+ error = NFSERR_NOTSUPP;
+ else
+ error = NFSERR_SERVERFAULT;
vrele(vp);
vp = NULL;
free((caddr_t)cookies, M_TEMP);