journal: handle EADDRNOTAVAIL in two more cases gracefully

Follow-up for #27488.
This commit is contained in:
Lennart Poettering
2023-05-03 00:13:40 +09:00
committed by Yu Watanabe
parent c19b827802
commit 5789c60973
2 changed files with 2 additions and 0 deletions
+1
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;
+1
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 */