journal: Don't write to journal files without the new boot ID update behavior guarantee
authormsizanoen <msizanoen@qtmlabs.xyz>
Wed, 30 Aug 2023 13:11:42 +0000 (20:11 +0700)
committermsizanoen <msizanoen@qtmlabs.xyz>
Wed, 30 Aug 2023 13:16:45 +0000 (20:16 +0700)
commit2f766aca1e1398288e01b26a69eb02a7b831ab00
tree629381ca07853ce5001f75c0eb90cfd3820c548e
parent73ac9520ec1727897cc7f6ed7509ac9657d9c7ac
journal: Don't write to journal files without the new boot ID update behavior guarantee

With the old boot ID update behavior there's no way to compare the boot
ID of a new entry to be written with the boot ID of the last entry in
the journal in a performant manner, and therefore no way to determine if
monotonic clock value consistency checking is needed. Refuse to open
journal files without the new boot ID update behavior guarantee to
simplify consistency checking.
src/libsystemd/sd-journal/journal-file.c