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:
parent
c19b827802
commit
5789c60973
@ -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;
|
||||
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user