]> git.ipfire.org Git - thirdparty/systemd.git/commit
journal: Use 32-bit entry item object offsets in compact mode
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 2 Nov 2021 20:50:39 +0000 (20:50 +0000)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 7 Oct 2022 10:20:57 +0000 (12:20 +0200)
commita9089a6604066a8fa8138af2a6388be48f2a80ef
treed0931d8e65d340d083d1a0df8c546697a767b6e1
parent99daf3ce03f4091c74400f895f9c82a1c046e645
journal: Use 32-bit entry item object offsets in compact mode

To do this, we move EntryItem out of journal-def.h and turn it into
a host only struct in native endian mode so we can still use it to
ship the necessary info around.

Aside from that, the changes are pretty simple, we introduce some
extra functions to access the right field depending on the mode and
convert all the other code to use those functions instead of
accessing the raw fields.

We also drop the unused entry item hash field in compact mode. We
already stopped doing anything with this field a while ago, now we
actually drop it from the format in compact mode.
docs/JOURNAL_FILE_FORMAT.md
src/libsystemd/sd-journal/journal-def.h
src/libsystemd/sd-journal/journal-file.c
src/libsystemd/sd-journal/journal-file.h
src/libsystemd/sd-journal/journal-verify.c
src/libsystemd/sd-journal/sd-journal.c