From: Benny Halevy Date: Wed, 1 Apr 2009 13:21:51 +0000 (-0400) Subject: nfs41: translate NFS4ERR_MINOR_VERS_MISMATCH to EPROTONOSUPPORT X-Git-Tag: v2.6.31-rc1~58^2~3^2~97 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c2e713dd83dcabb2ae951ea572e7de68c96e2d48;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c index 0298e909559fd..bc683ed477e10 100644 --- a/fs/nfs/nfs4state.c +++ b/fs/nfs/nfs4state.c @@ -1107,6 +1107,8 @@ static int nfs4_reclaim_lease(struct nfs_client *clp) nfs4_clear_machine_cred(clp); status = -EAGAIN; } + if (status == -NFS4ERR_MINOR_VERS_MISMATCH) + status = -EPROTONOSUPPORT; } return status; }