]> git.ipfire.org Git - thirdparty/systemd.git/commit
journald: do not calculate free space too early
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 14 Jun 2013 03:32:14 +0000 (23:32 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 14 Jun 2013 03:35:12 +0000 (23:35 -0400)
commite40ec7aec5e64cd0cfa5fc556d6a9747229b5794
treedc0d5ff693d8de783c66f6b91854a6cd73c30242
parent6e5abe1564070a760196b97031eca9cf5e95e8a2
journald: do not calculate free space too early

Since the system journal wasn't open yet, available_space() returned 0.

Before:
systemd-journal[22170]: Allowing system journal files to grow to 4.0G.
systemd-journal[22170]: Journal size currently limited to 0B due to SystemKeepFree.

After:
systemd-journal[22178]: Allowing system journal files to grow to 4.0G.
systemd-journal[22178]: Journal size currently limited to 3.0G due to SystemKeepFree.

Also, when failing to write a message, show how much space was needed:
"Failed to write entry (26 items, 260123456 bytes) despite vacuuming, ignoring: ...".
src/journal/journald-server.c