diff options
author | Jan Kundrát <jan.kundrat@cesnet.cz> | 2019-11-02 16:42:01 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-11-04 14:52:27 +0100 |
commit | c488660e6edb3c1375ab62514a8df035c3d712bf (patch) | |
tree | a59a83d38a579f6a3bf649bb5643dfeb5f6a8957 | |
parent | a859abf062cef1511e4879c4ee39c6036ebeaec8 (diff) | |
download | systemd-c488660e6edb3c1375ab62514a8df035c3d712bf.tar.gz |
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>
-rw-r--r-- | src/journal/journalctl.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index 771c5c1730..e5a2f6efcf 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -2240,9 +2240,6 @@ int main(int argc, char *argv[]) { HASHMAP_FOREACH(d, j->directories_by_path, i) { int q; - if (d->is_root) - continue; - q = journal_directory_vacuum(d->path, arg_vacuum_size, arg_vacuum_n_files, arg_vacuum_time, NULL, !arg_quiet); if (q < 0) { log_error_errno(q, "Failed to vacuum %s: %m", d->path); |