From b9a1617d75c16a48cccf4ff135013dca9af94e7d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 6 Jan 2015 20:27:29 +0100 Subject: [PATCH] journal: consider file deletion errors a reason for rotation --- src/journal/journal-file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index 4c7dd242e1e..c9030c56add 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)