summaryrefslogtreecommitdiff
path: root/src/journal/journal-file.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-01-06 20:27:29 +0100
committerLennart Poettering <lennart@poettering.net>2015-01-06 20:31:40 +0100
commitb9a1617d75c16a48cccf4ff135013dca9af94e7d (patch)
tree2f0f3d5477a0cb2e07d4275db6ed0750eed97d4c /src/journal/journal-file.c
parentf27a386430cc7a27ebd06899d93310fb3bd4cee7 (diff)
journal: consider file deletion errors a reason for rotation
Diffstat (limited to 'src/journal/journal-file.c')
-rw-r--r--src/journal/journal-file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
index 4c7dd242e1..c9030c56ad 100644
--- a/src/journal/journal-file.c
+++ b/src/journal/journal-file.c
@@ -2780,7 +2780,8 @@ int journal_file_open_reliably(
r != -EPROTONOSUPPORT && /* incompatible feature */
r != -EBUSY && /* unclean shutdown */
r != -ESHUTDOWN && /* already archived */
- r != -EIO /* IO error, including SIGBUS on mmap */)
+ r != -EIO && /* IO error, including SIGBUS on mmap */
+ r != -EIDRM /* File has been deleted */)
return r;
if ((flags & O_ACCMODE) == O_RDONLY)