Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
435ae2f2
Commit
435ae2f2
authored
Feb 26, 2019
by
Mark Andrews
Committed by
Evan Hunt
Mar 07, 2019
Browse files
Handle EDQUOT and ENOSPC errors
parent
fced495d
Pipeline
#11463
passed with stages
in 19 minutes and 4 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
435ae2f2
5178. [bug] Handle EDQUOT (disk quota) and ENOSPC (disk full)
errors when writing files. [GL #902]
5177. [func] Add the ability to specify in named.conf whether a
response-policy zone's SOA record should be added
to the additional section (add-soa yes/no). [GL #865]
...
...
lib/isc/include/isc/result.h
View file @
435ae2f2
...
...
@@ -85,9 +85,11 @@
#define ISC_R_WOULDBLOCK 63
/*%< would block */
#define ISC_R_COMPLETE 64
/*%< complete */
#define ISC_R_CRYPTOFAILURE 65
/*%< cryptography library failure */
#define ISC_R_DISCQUOTA 66
/*%< disc quota */
#define ISC_R_DISCFULL 67
/*%< disc full */
/*% Not a result code: the number of results. */
#define ISC_R_NRESULTS 6
6
#define ISC_R_NRESULTS 6
8
ISC_LANG_BEGINDECLS
...
...
lib/isc/result.c
View file @
435ae2f2
...
...
@@ -99,6 +99,8 @@ static const char *description[ISC_R_NRESULTS] = {
"would block"
,
/*%< 63 */
"complete"
,
/*%< 64 */
"crypto failure"
,
/*%< 65 */
"disc quota"
,
/*%< 66 */
"disc full"
,
/*%< 67 */
};
static
const
char
*
identifier
[
ISC_R_NRESULTS
]
=
{
...
...
@@ -168,6 +170,8 @@ static const char *identifier[ISC_R_NRESULTS] = {
"ISC_R_WOULDBLOCK"
,
"ISC_R_COMPLETE"
,
"ISC_R_CRYPTOFAILURE"
,
"ISC_R_DISCQUOTA"
,
"ISC_R_DISCFULL"
,
};
#define ISC_RESULT_RESULTSET 2
...
...
lib/isc/unix/errno2result.c
View file @
435ae2f2
...
...
@@ -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
);
...
...
lib/isc/win32/errno2result.c
View file @
435ae2f2
...
...
@@ -63,6 +63,8 @@ isc__errno2resultx(int posixerrno, bool dolog,
case
EMFILE
:
case
WSAEMFILE
:
return
(
ISC_R_TOOMANYOPENFILES
);
case
ENOSPC
:
return
(
ISC_R_DISCFULL
);
case
ERROR_CANCELLED
:
return
(
ISC_R_CANCELED
);
case
ERROR_CONNECTION_REFUSED
:
...
...
Mark Andrews
@marka
mentioned in commit
cdf928d3
·
Mar 08, 2019
mentioned in commit
cdf928d3
mentioned in commit cdf928d3918dbed29cae86641abdb03a7352b1fe
Toggle commit list
Mark Andrews
@marka
mentioned in commit
28ea43ab
·
Mar 08, 2019
mentioned in commit
28ea43ab
mentioned in commit 28ea43ab35143f38cf11e84e5ed0dfe942092ca4
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment