chiark / gitweb /
journalctl: be smarter about journal error checks
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 11 Mar 2013 22:03:13 +0000 (18:03 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 22 Mar 2013 19:31:45 +0000 (15:31 -0400)
commit6fe391c56d3f4231576ccc9d62d2000f37640a92
tree8e2785d70206a8de88975756f3df59a92ba6dc10
parent478c82693c386e7a6e8e4b37cc99fb19b12e7186
journalctl: be smarter about journal error checks

There are many ways in which we can get those checks wrong, so it is
better to warn and then error out on a real access failure.

The error messages are wrapped to <80 lines, because their primary
use is to be displayed in the terminal, and it is easier to read them
this way. Reading them in the journal can be a bit trickier, but
this is a bug in logs-show.c.
src/journal/journal-internal.h
src/journal/journalctl.c
src/journal/sd-journal.c