Systemd/src/journal
Lennart Poettering 8580d1f73d journal: rework vacuuming logic
Implement a maximum limit on number of journal files to keep around.
Enforcing a limit is useful on this since our performance when viewing
pays a heavy penalty for each journal file to interleve. This setting is
turned on now by default, and set to 100.

Also, actully implement what 348ced9097
promised: use whatever we find on disk at startup as lower bound on how
much disk space we can use. That commit introduced some provisions to
implement this, but actually never did.

This also adds "journalctl --vacuum-files=" to vacuum files on disk by
their number explicitly.
2015-10-02 23:21:59 +02:00
..
.gitignore Add audit type generated files to gitignore 2015-05-05 22:41:42 -04:00
audit-type.c journal: use audit event names instead of numbers 2015-04-23 23:54:21 -04:00
audit-type.h journal: use audit event names instead of numbers 2015-04-23 23:54:21 -04:00
cat.c journal-cat: various modernizations 2015-09-29 21:55:51 +02:00
catalog.c tree-wide: remove a number of invocations of strerror() and replace by %m 2015-09-30 22:26:16 +02:00
catalog.h hashmap: introduce hash_ops to make struct Hashmap smaller 2014-09-15 16:08:50 +02:00
compress.c tree-wide: never use the off_t unless glibc makes us use it 2015-09-10 18:16:18 +02:00
compress.h tree-wide: never use the off_t unless glibc makes us use it 2015-09-10 18:16:18 +02:00
coredump-vacuum.c tree-wide: never use the off_t unless glibc makes us use it 2015-09-10 18:16:18 +02:00
coredump-vacuum.h tree-wide: never use the off_t unless glibc makes us use it 2015-09-10 18:16:18 +02:00
coredump.c tree-wide: never use the off_t unless glibc makes us use it 2015-09-10 18:16:18 +02:00
coredump.conf Do not advertise .d snippets over main config file 2015-03-03 19:10:21 -05:00
coredumpctl.c util: introduce common version() implementation and use it everywhere 2015-09-29 21:08:37 +02:00
fsprg.c remove unused includes 2015-02-23 23:53:42 +01:00
fsprg.h Add __attribute__((const, pure, format)) in various places 2013-05-02 22:52:09 -04:00
journal-authenticate.c tree-wide: there is no ENOTSUP on linux 2015-03-13 14:10:39 +01:00
journal-authenticate.h remove unused includes 2015-02-23 23:53:42 +01:00
journal-def.h journal: fix size comment 2015-05-13 17:58:34 +02:00
journal-file.c journal: rework vacuuming logic 2015-10-02 23:21:59 +02:00
journal-file.h journal: rework vacuuming logic 2015-10-02 23:21:59 +02:00
journal-internal.h Add missing includes in header files 2015-02-12 20:44:32 +01:00
journal-qrcode.c Use stdint.h macros instead of casts to print uint64_t values 2013-06-10 10:10:07 -04:00
journal-qrcode.h remove unused includes 2015-02-23 23:53:42 +01:00
journal-send.c tree-wide: port more code to use send_one_fd() and receive_one_fd() 2015-09-29 21:08:37 +02:00
journal-vacuum.c journal: rework vacuuming logic 2015-10-02 23:21:59 +02:00
journal-vacuum.h journal: rework vacuuming logic 2015-10-02 23:21:59 +02:00
journal-verify.c cgtop: underline table header 2015-09-22 16:30:42 +02:00
journal-verify.h journald: always pass first entry timestamp back from journal_file_verify() 2012-09-24 15:02:43 +02:00
journalctl.c journal: rework vacuuming logic 2015-10-02 23:21:59 +02:00
journald-audit.c tree-wide: drop {} from one-line if blocks 2015-09-09 08:20:20 +02:00
journald-audit.h journald: don't pass around SO_TIMESTAMP timestamp for audit, which we don't have anyway 2014-11-04 00:32:02 +01:00
journald-console.c shared: add terminal-util.[ch] 2015-04-11 00:34:02 +02:00
journald-console.h journald: constify all things! 2014-11-03 21:51:28 +01:00
journald-gperf.gperf journal: rework vacuuming logic 2015-10-02 23:21:59 +02:00
journald-kmsg.c treewide: fix typos 2015-09-08 12:55:50 +02:00
journald-kmsg.h journald: constify all things! 2014-11-03 21:51:28 +01:00
journald-native.c tree-wide: update empty-if coccinelle script to cover empty-while and more 2015-09-09 14:59:51 +02:00
journald-native.h journald: constify all things! 2014-11-03 21:51:28 +01:00
journald-rate-limit.c shared: add random-util.[ch] 2015-04-11 00:11:13 +02:00
journald-rate-limit.h remove unused includes 2015-02-23 23:53:42 +01:00
journald-server.c journal: rework vacuuming logic 2015-10-02 23:21:59 +02:00
journald-server.h journal: rework vacuuming logic 2015-10-02 23:21:59 +02:00
journald-stream.c tree-wide: port everything over to fflush_and_check() 2015-07-29 20:31:07 +02:00
journald-stream.h journald: allow restarting journald without losing stream connections 2015-01-06 03:16:39 +01:00
journald-syslog.c journald: do not strip leading whitespace from messages 2015-06-10 22:35:26 -07:00
journald-syslog.h import: introduce new mini-daemon systemd-importd, and make machinectl a client to it 2015-01-22 04:02:07 +01:00
journald-wall.c shared/utmp-wtmp: add parameter for origin tty and callback userdata 2015-04-24 17:48:12 +02:00
journald-wall.h journald: constify all things! 2014-11-03 21:51:28 +01:00
journald.c journal: rework vacuuming logic 2015-10-02 23:21:59 +02:00
journald.conf journal: rework vacuuming logic 2015-10-02 23:21:59 +02:00
lookup3.c journal: fix build in VALGRIND compatibility mode 2012-10-13 14:40:32 +02:00
lookup3.h Add __attribute__((const, pure, format)) in various places 2013-05-02 22:52:09 -04:00
Makefile journal: add preliminary incomplete implementation 2011-10-07 22:02:05 +02:00
mmap-cache.c remove unused includes 2015-02-23 23:53:42 +01:00
mmap-cache.h remove unused includes 2015-02-23 23:53:42 +01:00
sd-journal.c util: make machine_name_is_valid() a macro and move it to hostname-util.h 2015-08-24 22:46:45 +02:00
stacktrace.c util: introduce safe_fclose() and port everything over to it 2015-09-09 15:26:11 +02:00
stacktrace.h coredump: include stacktrace of coredumps in the log message 2014-06-19 12:38:45 +02:00
test-audit-type.c journal: use audit event names instead of numbers 2015-04-23 23:54:21 -04:00
test-catalog.c remove unused includes 2015-02-23 23:53:42 +01:00
test-compress-benchmark.c tests: use assert_se instead of assert 2015-01-22 23:10:56 +01:00
test-compress.c tree-wide: never use the off_t unless glibc makes us use it 2015-09-10 18:16:18 +02:00
test-coredump-vacuum.c tree-wide: never use the off_t unless glibc makes us use it 2015-09-10 18:16:18 +02:00
test-journal-enum.c remove unused includes 2015-02-23 23:53:42 +01:00
test-journal-flush.c test-journal-flush: fix memleak 2015-04-09 18:47:52 +02:00
test-journal-init.c util: rework rm_rf() logic 2015-04-06 10:57:53 +02:00
test-journal-interleaving.c journal: rework vacuuming logic 2015-10-02 23:21:59 +02:00
test-journal-match.c Always prefer our headers to system headers 2014-07-31 08:56:03 -04:00
test-journal-send.c Always prefer our headers to system headers 2014-07-31 08:56:03 -04:00
test-journal-stream.c journal: ensure test-journal-stream doesn't get confused by crappy clocks 2015-06-17 20:37:19 +02:00
test-journal-syslog.c tests: use assert_se instead of assert 2014-11-30 02:35:52 +01:00
test-journal-verify.c cgtop: underline table header 2015-09-22 16:30:42 +02:00
test-journal.c journal: rework vacuuming logic 2015-10-02 23:21:59 +02:00
test-mmap-cache.c remove unused includes 2015-02-23 23:53:42 +01:00