]> git.ipfire.org Git - thirdparty/systemd.git/commit
journal: punch holes in unused parts of entry arrays when archiving 21372/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 16 Nov 2021 23:54:16 +0000 (23:54 +0000)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 6 Dec 2021 13:54:06 +0000 (14:54 +0100)
commit6127ff987056ea3e80abc3724a4f397bb6314888
tree7726b40483007fbcb8a90677c63a07a5134fc1b5
parentab6e257b3e4e5b95f3750ed019bed6e89989e41b
journal: punch holes in unused parts of entry arrays when archiving

Entry arrays grow exponentially, so when archiving a journal file is
archived, it's very likely that the final entry array objects in each
entry array chain aren't fully used. Let's punch holes in the unused
parts so the filesystem can reclaim this unused space and use it for
something else.
src/libsystemd/sd-journal/journal-file.c