chiark / gitweb /
journal: rework directory enumeration/watch logic
authorLennart Poettering <lennart@poettering.net>
Tue, 10 Jul 2012 23:08:38 +0000 (01:08 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 10 Jul 2012 23:08:38 +0000 (01:08 +0200)
commita963990ff4ebc7908d3cf82bbd8cf34a42d57b7f
treeed0ec7a15879352961a08c88be739f6fb6438f40
parente02d1cf72d115d1d61defdca5b551672d876c6bd
journal: rework directory enumeration/watch logic

There's now sd_journal_new_directory() for watching specific journal
directories. This is exposed in journalctl -D.

sd_journal_wait() and sd_journal_process() now return whether changes in
the journal are invalidating or just appending.

We now create inotify kernel watches only when we actually need them
TODO
man/journalctl.xml
src/journal/journal-internal.h
src/journal/journalctl.c
src/journal/libsystemd-journal.sym
src/journal/sd-journal.c
src/systemd/sd-journal.h