summaryrefslogtreecommitdiff
path: root/src/journal/journal-file.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-03-21 23:40:51 +0100
committerLennart Poettering <lennart@poettering.net>2012-03-21 23:40:51 +0100
commit0071d9f1db6dc9a1035cf5afb81455b67ed462f6 (patch)
tree834173e4e0138e468ab301552dac70584af4acc2 /src/journal/journal-file.c
parent95f77929d8d94480015cd7383a5504cf9ebf2fa5 (diff)
journal: react with immediate rotation to a couple of more errors
Diffstat (limited to 'src/journal/journal-file.c')
-rw-r--r--src/journal/journal-file.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
index 474dd5ca7c..5d540a7d40 100644
--- a/src/journal/journal-file.c
+++ b/src/journal/journal-file.c
@@ -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)