summaryrefslogtreecommitdiff
path: root/docs/JOURNAL_FILE_FORMAT.md
Commit message (Collapse)AuthorAgeFilesLines
* journal-file: journal-file: extend journal header to always carry offset of ↵Lennart Poettering2023-03-021-2/+7
| | | | | | | | | | most recent entry This way we can quickly find the most recent entry, without searching or traversing entry array chains. This is relevant later, as it it allows us to quickly determine the most recent timestamps of each journal file, in a roughly atomic way.
* docs: document the new HEADER_COMPATIBLE_TAIL_ENTRY_BOOT_ID flagLennart Poettering2023-02-211-5/+27
|
* journal: Store offsets to tail entry array objects in chainDaan De Meyer2022-10-071-1/+18
| | | | | | | | | Previously, we'd iterate an entry array from start to end every time we added an entry offset to it. To speed up this operation, we cache the last entry array in the chain and how many items it contains. This allows the addition of an entry to the chain to be done in constant time instead of linear time as we don't have to iterate the entire chain anymore every time we add an entry.
* journal: Use 32-bit entry item object offsets in compact modeDaan De Meyer2022-10-071-6/+13
| | | | | | | | | | | | | | | 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.
* journal: Use 32-bit entry array offsets in compact modeDaan De Meyer2022-10-071-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Before: OBJECT TYPE ENTRIES SIZE Unused 0 0B Data 3610336 595.7M Field 5310 285.2K Entry 3498326 1.2G Data Hash Table 29 103.1M Field Hash Table 29 151.3K Entry Array 605991 1011.6M Tag 0 0B Total 7720021 2.9G After: OBJECT TYPE ENTRIES SIZE Unused 0 0B Data 3562667 591.0M Field 3971 213.6K Entry 3498566 1.2G Data Hash Table 20 71.1M Field Hash Table 20 104.3K Entry Array 582647 505.0M Tag 0 0B Total 7647891 2.4G
* journal: Add compact modeDaan De Meyer2022-10-071-0/+4
| | | | | | 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.
* docs: use relative linksBenjamin Franzke2022-05-181-5/+6
| | | | | | | | | | | | | | | | Allows for links to work both on systemd.io (or forks) and when viewed on https://github.com/systemd/systemd/tree/main/docs Note that the markdown links are converted by jekyll-relative-links[1] to html. This plugin is enabled by default on github pages[2][3]. Due to a bug in jekyll-relative-links – see https://github.com/benbalter/jekyll-relative-links/issues/61 – we need to avoid line-wrapped links when using relative markdown links. [1] https://github.com/benbalter/jekyll-relative-links [2] https://github.blog/2016-12-05-relative-links-for-github-pages/ [3] https://docs.github.com/en/pages/setting-up-a-github-pages-site-with-jekyll/about-github-pages-and-jekyll#plugins
* docs: fix typos and improve languageErik Sjölund2022-01-261-1/+1
| | | | | Fix typos and improve the language by adding a few commas and a missing word.
* man+docs: adjust links to the new pageZbigniew Jędrzejewski-Szmek2022-01-121-9/+7
|
* docs: use https:// for fd.o linksZbigniew Jędrzejewski-Szmek2022-01-121-7/+7
|
* docs: add spdx tags to all .md filesZbigniew Jędrzejewski-Szmek2021-09-271-0/+1
| | | | | | I have no idea if this is going to cause rendering problems, and it is fairly hard to check. So let's just merge this, and if it github markdown processor doesn't like it, revert.
* docs: Update link to journal file format codebaseMilan2021-05-161-1/+1
|
* docs: Update link to journal-def.hMilan2021-05-161-1/+1
|
* Revert "fix wrong statement JOURNAL_FILE_FORMAT.md doc"Luca Boccassi2021-03-301-1/+1
| | | | This reverts commit 119063d2b149667a91e0e08e4bdf82a0eb6a7efd.
* fix wrong statement JOURNAL_FILE_FORMAT.md docYangyang Shen2021-03-291-1/+1
|
* JOURNAL_FILE_FORMAT: fixup typos and punctuationVito Caputo2020-11-181-7/+7
| | | | No significant changes
* Replace gendered pronouns with gender neutral ones. (#16844)PhoenixDiscord2020-08-271-2/+2
|
* JOURNAL_FILE_FORMAT: minor markdown fixesLennart Poettering2020-06-261-21/+22
|
* docs: document the new journal file format additionsLennart Poettering2020-06-251-25/+66
|
* docs: import journal file format docs from fdo wikiLennart Poettering2020-06-251-0/+652
Just an import, with no textual changes (some fixed URLs however)