]> git.ipfire.org Git - thirdparty/systemd.git/commit
journal: don't insist that the journal file header's boot ID matches the last entry 8513/head
authorLennart Poettering <lennart@poettering.net>
Tue, 20 Mar 2018 19:41:30 +0000 (20:41 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 20 Mar 2018 22:31:11 +0000 (23:31 +0100)
commite71d1f6c7839ac97ae2805269f2a65d273e357a9
tree725f6508b2f1bdb1dd6ccdf1a2b9bf8a5ff901cd
parentffe535e43e81876d0520c37660df8015ff5a02bf
journal: don't insist that the journal file header's boot ID matches the last entry

We update the boot ID whenever the file is opened for writing (i.e. set
to ONLINE stat), even if we never write a single entry to it. Hence,
don't insist that the last entry's boot ID matches the file header.

As pointed out by Matthijs van Duin:

https://lists.freedesktop.org/archives/systemd-devel/2018-March/040499.html
src/journal/journal-verify.c