Commit 5a2a2a19 authored by Lennart Poettering's avatar Lennart Poettering Committed by Tollef Fog Heen
Browse files

journal: react with immediate rotation to a couple of more errors

parent 693ce213
......@@ -1887,7 +1887,10 @@ int journal_file_open_reliably(
char *p;
r = journal_file_open(fname, flags, mode, template, ret);
if (r != -EBADMSG)
if (r != -EBADMSG && /* corrupted */
r != -ENODATA && /* truncated */
r != -EHOSTDOWN && /* other machine */
r != -EPROTONOSUPPORT) /* incompatible feature */
return r;
if ((flags & O_ACCMODE) == O_RDONLY)
......
......@@ -609,7 +609,15 @@ retry:
else {
r = journal_file_append_entry(f, NULL, iovec, n, &s->seqnum, NULL, NULL);
if ((r == -EBADMSG || r == -E2BIG) && !vacuumed) {
if ((r == -E2BIG || /* hit limit */
r == -EFBIG || /* hit fs limit */
r == -EDQUOT || /* quota hit */
r == -ENOSPC || /* disk full */
r == -EBADMSG || /* corrupted */
r == -ENODATA || /* truncated */
r == -EHOSTDOWN || /* other machine */
r == -EPROTONOSUPPORT) && /* unsupported feature */
!vacuumed) {
if (r == -E2BIG)
log_info("Allocation limit reached, rotating.");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment