journalctl: allow running vacuum on remote journals, too
authorJan Kundrát <jan.kundrat@cesnet.cz>
Sat, 2 Nov 2019 15:42:01 +0000 (16:42 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 4 Nov 2019 13:52:27 +0000 (14:52 +0100)
commitc488660e6edb3c1375ab62514a8df035c3d712bf
treea59a83d38a579f6a3bf649bb5643dfeb5f6a8957
parenta859abf062cef1511e4879c4ee39c6036ebeaec8
journalctl: allow running vacuum on remote journals, too

Right now the `systemd-journal-remote` service does not constrain its
resource usage (I just run out of space on my 100GB partition, for
example). This patch does not change that, but it at least makes it
possible to run something like:

  journalctl --directory /var/log/journal/remote --rotate --vacuum-size=90G

fixes #2376

Co-authored-by: Mike Auty <ikelos@gentoo.org>
src/journal/journalctl.c