]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE140-windows-error-codes-20051018
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 18 Oct 2005 16:32:53 +0000 (16:32 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 18 Oct 2005 16:32:53 +0000 (16:32 +0000)
handle the CM_ERROR_ALLDOWN case when translating cm errors to nt status

(cherry picked from commit 5cd3d016fdbc6d14c6ac942b0b4e3e92a09755c5)

src/WINNT/afsd/smb.c

index 67f7f245bc013b48e9788e301ec1639f12780a78..d33ddae577407a3af1c91628a58c9eff5b234577 100644 (file)
@@ -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