diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-01-06 20:27:29 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-01-06 20:31:40 +0100 |
commit | b9a1617d75c16a48cccf4ff135013dca9af94e7d (patch) | |
tree | 2f0f3d5477a0cb2e07d4275db6ed0750eed97d4c /src/journal | |
parent | f27a386430cc7a27ebd06899d93310fb3bd4cee7 (diff) |
journal: consider file deletion errors a reason for rotation
Diffstat (limited to 'src/journal')
-rw-r--r-- | src/journal/journal-file.c | 3 |
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) |