diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-03-21 23:40:51 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-03-21 23:40:51 +0100 |
commit | 0071d9f1db6dc9a1035cf5afb81455b67ed462f6 (patch) | |
tree | 834173e4e0138e468ab301552dac70584af4acc2 /src/journal/journald.c | |
parent | 95f77929d8d94480015cd7383a5504cf9ebf2fa5 (diff) |
journal: react with immediate rotation to a couple of more errors
Diffstat (limited to 'src/journal/journald.c')
-rw-r--r-- | src/journal/journald.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/journal/journald.c b/src/journal/journald.c index baad3ab1ad..d27cb60ac7 100644 --- a/src/journal/journald.c +++ b/src/journal/journald.c @@ -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."); |