summaryrefslogtreecommitdiff
path: root/docs/JOURNAL_FILE_FORMAT.md
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2021-10-23 22:24:56 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2022-10-07 11:26:28 +0200
commit87413812c92b7a435e94c9c37ed634328d182d4d (patch)
treef18284550e64e4ec7477e15ea8b6cdd878ec55c4 /docs/JOURNAL_FILE_FORMAT.md
parentc76691d708ac7fe13b7c4307c010d447fcbc3e9a (diff)
downloadsystemd-87413812c92b7a435e94c9c37ed634328d182d4d.tar.gz
journal: Add compact mode
This adds a new flag in preparation for incompatible journal changes which will be gated behind this flag. The max file size of journal files in compact mode is limited to 4 GiB.
Diffstat (limited to 'docs/JOURNAL_FILE_FORMAT.md')
-rw-r--r--docs/JOURNAL_FILE_FORMAT.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/JOURNAL_FILE_FORMAT.md b/docs/JOURNAL_FILE_FORMAT.md
index 61a27a9699..d40688c440 100644
--- a/docs/JOURNAL_FILE_FORMAT.md
+++ b/docs/JOURNAL_FILE_FORMAT.md
@@ -259,6 +259,7 @@ enum {
HEADER_INCOMPATIBLE_COMPRESSED_LZ4 = 1 << 1,
HEADER_INCOMPATIBLE_KEYED_HASH = 1 << 2,
HEADER_INCOMPATIBLE_COMPRESSED_ZSTD = 1 << 3,
+ HEADER_INCOMPATIBLE_COMPACT = 1 << 4,
};
enum {
@@ -276,6 +277,9 @@ HEADER_INCOMPATIBLE_KEYED_HASH indicates that instead of the unkeyed Jenkins
hash function the keyed siphash24 hash function is used for the two hash
tables, see below.
+HEADER_INCOMPATIBLE_COMPACT indicates that the journal file uses the new binary
+format that uses less space on disk compared to the original format.
+
HEADER_COMPATIBLE_SEALED indicates that the file includes TAG objects required
for Forward Secure Sealing.