1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-04 21:47:31 +03:00

journal: handle EADDRNOTAVAIL in two more cases gracefully

Follow-up for #27488.
This commit is contained in:
Lennart Poettering 2023-05-02 12:23:07 +02:00 committed by Yu Watanabe
parent c19b827802
commit 5789c60973
2 changed files with 2 additions and 0 deletions

View File

@ -866,6 +866,7 @@ static bool shall_try_append_again(JournalFile *f, int r) {
case -EBADMSG: /* Corrupted */
case -ENODATA: /* Truncated */
case -ESHUTDOWN: /* Already archived */
case -EADDRNOTAVAIL: /* Referenced object offset out of bounds */
log_ratelimit_info_errno(r, JOURNAL_LOG_RATELIMIT, "%s: Journal file corrupted, rotating.", f->path);
return true;

View File

@ -537,6 +537,7 @@ int managed_journal_file_open_reliably(
ret);
if (!IN_SET(r,
-EBADMSG, /* Corrupted */
-EADDRNOTAVAIL, /* Referenced object offset out of bounds */
-ENODATA, /* Truncated */
-EHOSTDOWN, /* Other machine */
-EPROTONOSUPPORT, /* Incompatible feature */