aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorBenny Halevy <bhalevy@panasas.com>2009-04-01 09:21:51 -0400
committerBenny Halevy <bhalevy@panasas.com>2009-06-17 13:46:18 -0400
commitc2e713dd83dcabb2ae951ea572e7de68c96e2d48 (patch)
treea31853e13995f6dfa79052ad774d8f505e2bc298 /fs/nfs
parent5aae4a9ae0dd55409a42ca61b82ef1f5a840091e (diff)
nfs41: translate NFS4ERR_MINOR_VERS_MISMATCH to EPROTONOSUPPORT
To be returned to the mount command when trying to mount a v4 server using minorversion 1. Signed-off-by: Benny Halevy <bhalevy@panasas.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/nfs4state.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c
index 0298e909559f..bc683ed477e1 100644
--- a/fs/nfs/nfs4state.c
+++ b/fs/nfs/nfs4state.c
@@ -1107,6 +1107,8 @@ static int nfs4_reclaim_lease(struct nfs_client *clp)
1107 nfs4_clear_machine_cred(clp); 1107 nfs4_clear_machine_cred(clp);
1108 status = -EAGAIN; 1108 status = -EAGAIN;
1109 } 1109 }
1110 if (status == -NFS4ERR_MINOR_VERS_MISMATCH)
1111 status = -EPROTONOSUPPORT;
1110 } 1112 }
1111 return status; 1113 return status;
1112} 1114}