mirror of
https://github.com/systemd/systemd.git
synced 2024-10-30 14:55:37 +03:00
8b4fbbb0a1
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. |
||
---|---|---|
.. | ||
browse.html | ||
fuzz-journal-remote.c | ||
fuzz-journal-remote.options | ||
journal-gatewayd.c | ||
journal-remote-main.c | ||
journal-remote-parse.c | ||
journal-remote-parse.h | ||
journal-remote-write.c | ||
journal-remote-write.h | ||
journal-remote.c | ||
journal-remote.conf.in | ||
journal-remote.h | ||
journal-upload-journal.c | ||
journal-upload.c | ||
journal-upload.conf.in | ||
journal-upload.h | ||
log-generator.py | ||
meson.build | ||
microhttpd-util.c | ||
microhttpd-util.h |