mirror of
https://git.openafs.org/openafs.git
synced 2025-02-01 05:57:43 +00:00
DEVEL15-windows-pioctl-add-error-translations-20070614
add error translations for CM_ERROR_ALLDOWN, CM_ERROR_ALLBUSY, CM_ERROR_ALLOFFLINE, CM_ERROR_NOSUCHPATH (cherry picked from commit c27c00f8a93dcfd1b919197e233c217f778cbbf7)
This commit is contained in:
parent
dbd5762ef4
commit
2bc3dfc829
@ -90,6 +90,7 @@ CMtoUNIXerror(int cm_code)
|
|||||||
case CM_ERROR_NOACCESS:
|
case CM_ERROR_NOACCESS:
|
||||||
return EACCES;
|
return EACCES;
|
||||||
case CM_ERROR_NOSUCHFILE:
|
case CM_ERROR_NOSUCHFILE:
|
||||||
|
case CM_ERROR_NOSUCHPATH:
|
||||||
return ENOENT;
|
return ENOENT;
|
||||||
case CM_ERROR_INVAL:
|
case CM_ERROR_INVAL:
|
||||||
return EINVAL;
|
return EINVAL;
|
||||||
@ -115,6 +116,12 @@ CMtoUNIXerror(int cm_code)
|
|||||||
return EDOM; /* hack */
|
return EDOM; /* hack */
|
||||||
case CM_ERROR_TOOMANYBUFS:
|
case CM_ERROR_TOOMANYBUFS:
|
||||||
return EFBIG; /* hack */
|
return EFBIG; /* hack */
|
||||||
|
case CM_ERROR_ALLBUSY:
|
||||||
|
return EBUSY;
|
||||||
|
case CM_ERROR_ALLDOWN:
|
||||||
|
return ENOSYS; /* hack */
|
||||||
|
case CM_ERROR_ALLOFFLINE:
|
||||||
|
return ENXIO; /* hack */
|
||||||
default:
|
default:
|
||||||
if (cm_code > 0 && cm_code < EILSEQ)
|
if (cm_code > 0 && cm_code < EILSEQ)
|
||||||
return cm_code;
|
return cm_code;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user