]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-windows-error-codes-20051018
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 18 Oct 2005 16:31:33 +0000 (16:31 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 18 Oct 2005 16:31:33 +0000 (16:31 +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 80bdaf4597061ae1bad74b241cb532e112257a5a..65c674b7b8552587969318107cc7d5064f76b873 100644 (file)
@@ -2452,7 +2452,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
@@ -2460,7 +2460,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