Permalink
Browse files

unix: map errno EDQUOT

Encountered on SmartOS when the disk limit of a zone is hit.
  • Loading branch information...
1 parent 9a48381 commit 4e4183f9474b7dc778b2ae54911be69d5c62fef4 @AvianFlu committed Sep 19, 2012
Showing with 2 additions and 0 deletions.
  1. +1 −0 include/uv.h
  2. +1 −0 src/unix/error.c
View
@@ -123,6 +123,7 @@ extern "C" {
XX( 56, EROFS, "read-only file system") \
XX( 57, ENODEV, "no such device") \
XX( 58, ESPIPE, "invalid seek") \
+ XX( 59, EDQUOT, "disk quota exceeded") \
#define UV_ERRNO_GEN(val, name, s) UV_##name = val,
View
@@ -100,6 +100,7 @@ uv_err_code uv_translate_sys_error(int sys_errno) {
case ENOSPC: return UV_ENOSPC;
case EROFS: return UV_EROFS;
case ENOMEM: return UV_ENOMEM;
+ case EDQUOT: return UV_EDQUOT;
default: return UV_UNKNOWN;
}
UNREACHABLE();

0 comments on commit 4e4183f

Please sign in to comment.