|
@@ -4631,7 +4631,7 @@ static int decode_sequence(struct xdr_stream *xdr,
|
|
|
* If the server returns different values for sessionID, slotID or
|
|
|
* sequence number, the server is looney tunes.
|
|
|
*/
|
|
|
- status = -ESERVERFAULT;
|
|
|
+ status = -EREMOTEIO;
|
|
|
|
|
|
if (memcmp(id.data, res->sr_session->sess_id.data,
|
|
|
NFS4_MAX_SESSIONID_LEN)) {
|
|
@@ -5774,7 +5774,7 @@ static struct {
|
|
|
{ NFS4ERR_BAD_COOKIE, -EBADCOOKIE },
|
|
|
{ NFS4ERR_NOTSUPP, -ENOTSUPP },
|
|
|
{ NFS4ERR_TOOSMALL, -ETOOSMALL },
|
|
|
- { NFS4ERR_SERVERFAULT, -ESERVERFAULT },
|
|
|
+ { NFS4ERR_SERVERFAULT, -EREMOTEIO },
|
|
|
{ NFS4ERR_BADTYPE, -EBADTYPE },
|
|
|
{ NFS4ERR_LOCKED, -EAGAIN },
|
|
|
{ NFS4ERR_SYMLINK, -ELOOP },
|
|
@@ -5801,7 +5801,7 @@ nfs4_stat_to_errno(int stat)
|
|
|
}
|
|
|
if (stat <= 10000 || stat > 10100) {
|
|
|
/* The server is looney tunes. */
|
|
|
- return -ESERVERFAULT;
|
|
|
+ return -EREMOTEIO;
|
|
|
}
|
|
|
/* If we cannot translate the error, the recovery routines should
|
|
|
* handle it.
|