1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-07 09:56:51 +03:00

journal: consider file deletion errors a reason for rotation

This commit is contained in:
Lennart Poettering 2015-01-06 20:27:29 +01:00
parent f27a386430
commit b9a1617d75

View File

@ -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)