From 7d44a087712def4b07011212f978c6d4572bf0de Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sat, 14 Nov 2009 16:27:37 -0500 Subject: [PATCH] Windows: Error mapping for VBUSY and VRESTARTING Add error mapping for VBUSY and VRESTARTING to cm_MapRPCError(). Return CM_ERROR_ALLBUSY. This prevents an unknown error from being returned to the SMB redirector. LICENSE MIT Change-Id: Ie8bf8bc88e087a8eef428444ca07c7ca7c4621a8 Reviewed-on: http://gerrit.openafs.org/826 Reviewed-by: Jacob Thebault-Spieker Reviewed-by: Derrick Brashear Tested-by: Jeffrey Altman Reviewed-by: Jeffrey Altman --- src/WINNT/afsd/cm_utils.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/WINNT/afsd/cm_utils.c b/src/WINNT/afsd/cm_utils.c index 11defd01c..aea0655d2 100644 --- a/src/WINNT/afsd/cm_utils.c +++ b/src/WINNT/afsd/cm_utils.c @@ -209,8 +209,7 @@ long cm_MapRPCError(long error, cm_req_t *reqp) error = et_to_sys_error(error); if (error == RX_CALL_DEAD || - error == RX_CALL_TIMEOUT || - error == RX_RESTARTING) + error == RX_CALL_TIMEOUT) error = CM_ERROR_RETRY; else if (error < 0) error = CM_ERROR_UNKNOWN; @@ -245,6 +244,8 @@ long cm_MapRPCError(long error, cm_req_t *reqp) error = CM_ERROR_BADFD; else if (error == VNOSERVICE || error == VSALVAGE || error == VOFFLINE) error = CM_ERROR_ALLOFFLINE; + else if (error == VBUSY || error == VRESTARTING) + error = CM_ERROR_ALLBUSY; else if (error == EISDIR) return CM_ERROR_ISDIR; return error; -- 2.39.5