]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
windows-pioctl-add-error-translations-20070614
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 14 Jun 2007 19:29:51 +0000 (19:29 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 14 Jun 2007 19:29:51 +0000 (19:29 +0000)
add error translations for CM_ERROR_ALLDOWN, CM_ERROR_ALLBUSY,
CM_ERROR_ALLOFFLINE, CM_ERROR_NOSUCHPATH

src/sys/pioctl_nt.c

index 8f2b940d35b19ef8e0c564e5036f1efec71466cf..b58cacb62697da6cbe729005261427b151c434f5 100644 (file)
@@ -90,6 +90,7 @@ CMtoUNIXerror(int cm_code)
     case CM_ERROR_NOACCESS:
        return EACCES;
     case CM_ERROR_NOSUCHFILE:
+    case CM_ERROR_NOSUCHPATH:
        return ENOENT;
     case CM_ERROR_INVAL:
        return EINVAL;
@@ -115,6 +116,12 @@ CMtoUNIXerror(int cm_code)
        return EDOM;            /* hack */
     case CM_ERROR_TOOMANYBUFS:
        return EFBIG;           /* hack */
+    case CM_ERROR_ALLBUSY:
+        return EBUSY;
+    case CM_ERROR_ALLDOWN:
+        return ENOSYS;          /* hack */
+    case CM_ERROR_ALLOFFLINE:
+        return ENXIO;           /* hack */
     default:
        if (cm_code > 0 && cm_code < EILSEQ)
            return cm_code;