1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 14:55:37 +03:00
systemd/src/journal-remote
Vito Caputo 8b4fbbb0a1 journal: stop using JournalFile.mmap everywhere
Preparatory commit; before JournalFile can stop hanging onto its
copy of MMapCache, all these users need to find another way.

Most of the time these callers already have the MMapCache onhand,
so it's no big deal for them to just supply it.

journal_file_rotate() in particular needed to change, and it
seemed wise to not use the mmap_cache_fd_cache() accessor on
f->cache_fd, instead requiring the caller supply the cache to
use.  This was done with an eye towards a potential future where
the journal_file_archive() isolates the cache_fd to a private
cache, which the newly rotated-to file wouldn't be allowed to
use.  It's no biggie for the existing callers to just provide the
appropriate surviving cache.

Basically the mmap_cache_fd_cache() accessor was added just for
journal-verify.c's (ab)use of the mmap-cache.  Which, if the
ugly singleton MMapCache assumption ever goes away, can be
cleaned up to simply use a separate MMapCache for those search
arrays.
2021-12-07 13:00:25 -08:00
..
browse.html tree-wide: add spdx header on source files 2021-01-28 09:55:35 +01:00
fuzz-journal-remote.c fuzz-journal-remote: print some kinds of errors 2021-05-31 19:29:07 +02:00
fuzz-journal-remote.options fuzzers: move several fuzzers 2021-01-19 07:04:19 +09:00
journal-gatewayd.c Drop the text argument from assert_not_reached() 2021-08-03 10:05:10 +02:00
journal-remote-main.c tree-wide: always use TAKE_FD() when calling rearrange_stdio() 2021-11-03 23:05:26 +00:00
journal-remote-parse.c journal-remote: downgrade messages about input data to warnings 2021-05-31 19:29:07 +02:00
journal-remote-parse.h license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
journal-remote-write.c journal: stop using JournalFile.mmap everywhere 2021-12-07 13:00:25 -08:00
journal-remote-write.h journal: Introduce journald-file.c for journal file write related logic 2021-12-06 22:17:38 +01:00
journal-remote.c journal: Introduce journald-file.c for journal file write related logic 2021-12-06 22:17:38 +01:00
journal-remote.conf.in meson: use jinja2 in src/journal-remote 2021-05-19 10:25:26 +09:00
journal-remote.h alloc-util: simplify GREEDY_REALLOC() logic by relying on malloc_usable_size() 2021-05-19 16:42:37 +02:00
journal-upload-journal.c tree-wide: port everything over to new sd-id128 compund literal bliss 2021-08-20 11:09:48 +02:00
journal-upload.c alloc-util: add strdupa_safe() + strndupa_safe() and use it everywhere 2021-10-14 15:57:52 +02:00
journal-upload.conf.in meson: use jinja2 in src/journal-remote 2021-05-19 10:25:26 +09:00
journal-upload.h license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
log-generator.py log-generator: count arguments as offset from an iterator 2021-07-19 19:39:40 +01:00
meson.build journal: Introduce journald-file.c for journal file write related logic 2021-12-06 22:17:38 +01:00
microhttpd-util.c journal-remote: check return value from MHD_add_response_header 2021-03-07 12:08:06 +01:00
microhttpd-util.h tree-wide: reset the cleaned-up variable in cleanup functions 2021-02-16 17:15:11 +01:00