Skip to content

Commit

Permalink
unix: map errno EDQUOT
Browse files Browse the repository at this point in the history
Encountered on SmartOS when the disk limit of a zone is hit.
  • Loading branch information
AvianFlu committed Sep 19, 2012
1 parent 9a48381 commit 4e4183f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/uv.h
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/unix/error.c
Expand Up @@ -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();
Expand Down

0 comments on commit 4e4183f

Please sign in to comment.