Handle EDQUOT and ENOSPC errors

This commit is contained in:
Mark Andrews
2019-02-26 13:01:53 +11:00
committed by Evan Hunt
parent fced495d47
commit 435ae2f29a
5 changed files with 18 additions and 1 deletions

View File

@@ -57,6 +57,12 @@ isc___errno2result(int posixerrno, bool dolog,
case ENFILE:
case EMFILE:
return (ISC_R_TOOMANYOPENFILES);
#ifdef EDQUOT
case EDQUOT:
return (ISC_R_DISCQUOTA);
#endif
case ENOSPC:
return (ISC_R_DISCFULL);
#ifdef EOVERFLOW
case EOVERFLOW:
return (ISC_R_RANGE);