Windows: VNOSERVICE error translation

Translate VNOSERVICE as CM_ERROR_RETRY and not CM_ERROR_OFFLINE.

Change-Id: I6daf9b9fb607192cedc057c518137772a7eb1bab
Reviewed-on: http://gerrit.openafs.org/7307
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Tested-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
This commit is contained in:
Jeffrey Altman 2012-04-30 06:18:58 -04:00 committed by Jeffrey Altman
parent c87fe04a61
commit f70a12adef

View File

@ -214,7 +214,8 @@ long cm_MapRPCError(long error, cm_req_t *reqp)
if (error == RX_CALL_DEAD ||
error == RX_CALL_TIMEOUT ||
error == RX_CALL_BUSY ||
error == RX_MSGSIZE)
error == RX_MSGSIZE ||
error == VNOSERVICE)
error = CM_ERROR_RETRY;
else if (error == RX_CALL_IDLE)
error = EIO;
@ -251,7 +252,7 @@ long cm_MapRPCError(long error, cm_req_t *reqp)
error = CM_ERROR_QUOTA;
else if (error == VNOVNODE)
error = CM_ERROR_BADFD;
else if (error == VNOSERVICE || error == VSALVAGE || error == VOFFLINE)
else if (error == VSALVAGE || error == VOFFLINE)
error = CM_ERROR_ALLOFFLINE;
else if (error == VBUSY || error == VRESTARTING)
error = CM_ERROR_ALLBUSY;
@ -282,11 +283,12 @@ long cm_MapRPCErrorRmdir(long error, cm_req_t *reqp)
error == RX_CALL_TIMEOUT ||
error == RX_CALL_BUSY ||
error == RX_CALL_IDLE ||
error == RX_MSGSIZE)
error == RX_MSGSIZE ||
error == VNOSERVICE)
error = CM_ERROR_RETRY;
else if (error == VNOVNODE)
error = CM_ERROR_BADFD;
else if (error == VNOSERVICE || error == VSALVAGE || error == VOFFLINE)
else if (error == VSALVAGE || error == VOFFLINE)
error = CM_ERROR_ALLOFFLINE;
else if (error == VBUSY || error == VRESTARTING)
error = CM_ERROR_ALLBUSY;
@ -332,7 +334,8 @@ long cm_MapVLRPCError(long error, cm_req_t *reqp)
error == RX_CALL_TIMEOUT ||
error == RX_CALL_BUSY ||
error == RX_CALL_IDLE ||
error == RX_MSGSIZE)
error == RX_MSGSIZE ||
error == VNOSERVICE)
error = CM_ERROR_RETRY;
else if (error == RX_RESTARTING)
error = CM_ERROR_ALLBUSY;