From f70a12adef9a915ada728350e0b9e1e5104f7ea7 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Mon, 30 Apr 2012 06:18:58 -0400 Subject: [PATCH] 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 Tested-by: Chas Williams - CONTRACTOR Reviewed-by: Chas Williams - CONTRACTOR Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- src/WINNT/afsd/cm_utils.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/WINNT/afsd/cm_utils.c b/src/WINNT/afsd/cm_utils.c index 8ade0c4059..de8f52b1ad 100644 --- a/src/WINNT/afsd/cm_utils.c +++ b/src/WINNT/afsd/cm_utils.c @@ -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;