1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-06 17:18:12 +03:00

journal: handle clock rollback error in managed_journal_file_open_reliably

-EREMCHG was introduced to denote a clock rollback detection error.
Handle this in managed_journal_file_open_reliably.
This commit is contained in:
msizanoen1 2023-01-09 23:05:19 +07:00
parent 9cd80d8a58
commit e18722375b

View File

@ -524,7 +524,8 @@ int managed_journal_file_open_reliably(
-ESHUTDOWN, /* Already archived */
-EIO, /* IO error, including SIGBUS on mmap */
-EIDRM, /* File has been deleted */
-ETXTBSY)) /* File is from the future */
-ETXTBSY, /* File is from the future */
-EREMCHG)) /* Clock rolled back */
return r;
if ((open_flags & O_ACCMODE) == O_RDONLY)