nfs41: translate NFS4ERR_MINOR_VERS_MISMATCH to EPROTONOSUPPORT
authorBenny Halevy <bhalevy@panasas.com>
Wed, 1 Apr 2009 13:21:51 +0000 (09:21 -0400)
committerBenny Halevy <bhalevy@panasas.com>
Wed, 17 Jun 2009 17:46:18 +0000 (10:46 -0700)
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>
fs/nfs/nfs4state.c

index 0298e909559fdc67f0bc5e7bab885595743e90a1..bc683ed477e1045c100c72a0216558152a5520f6 100644 (file)
@@ -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;
 }