From: Jeffrey Altman Date: Tue, 18 Oct 2005 16:32:53 +0000 (+0000) Subject: STABLE140-windows-error-codes-20051018 X-Git-Tag: openafs-stable-1_4_0~6 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=6e70654178e81a78bcd141b0a7c1b17c0d86cb4a;p=packages%2Fo%2Fopenafs.git STABLE140-windows-error-codes-20051018 handle the CM_ERROR_ALLDOWN case when translating cm errors to nt status (cherry picked from commit 5cd3d016fdbc6d14c6ac942b0b4e3e92a09755c5) --- diff --git a/src/WINNT/afsd/smb.c b/src/WINNT/afsd/smb.c index 67f7f245b..d33ddae57 100644 --- a/src/WINNT/afsd/smb.c +++ b/src/WINNT/afsd/smb.c @@ -2439,7 +2439,7 @@ void smb_MapNTError(long code, unsigned long *NTStatusp) else if (code == CM_ERROR_ALLBUSY) { NTStatus = 0xC00000BFL; /* Network Busy */ } - else if (code == CM_ERROR_ALLOFFLINE) { + else if (code == CM_ERROR_ALLOFFLINE || code == CM_ERROR_ALLDOWN) { NTStatus = 0xC0000350L; /* Remote Host Down */ } #else @@ -2447,7 +2447,8 @@ void smb_MapNTError(long code, unsigned long *NTStatusp) * the AFS Client Service is busy or down. */ else if (code == CM_ERROR_ALLBUSY || - code == CM_ERROR_ALLOFFLINE) { + code == CM_ERROR_ALLOFFLINE || + code == CM_ERROR_ALLDOWN) { NTStatus = 0xC00000BEL; /* Bad Network Path */ } #endif