mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 02:09:42 +00:00
NFS: Map minor mismatch error to protocol not support error.
Sservers that only have NFSv4.1 support the NFS4ERR_MINOR_VERS_MISMATCH error is return on v4.0 mounts. Mapping that error to EPROTONOSUPPORT will cause the mount to back off to v3 instead of failing. Signed-off-by: Steve Dickson <steved@redhat.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
9bce008bae
commit
f25efd851c
1 changed files with 2 additions and 0 deletions
|
@ -105,6 +105,8 @@ static int nfs4_map_errors(int err)
|
|||
return -EINVAL;
|
||||
case -NFS4ERR_SHARE_DENIED:
|
||||
return -EACCES;
|
||||
case -NFS4ERR_MINOR_VERS_MISMATCH:
|
||||
return -EPROTONOSUPPORT;
|
||||
default:
|
||||
dprintk("%s could not handle NFSv4 error %d\n",
|
||||
__func__, -err);
|
||||
|
|
Loading…
Reference in a new issue