diff options
author | 2012-10-26 20:05:19 +0200 | |
---|---|---|
committer | 2012-10-26 20:07:33 +0200 | |
commit | 85210bffd8363e491b4c31f2d09404f9869ad0c7 (patch) | |
tree | 8afc2d12f00925280a63dac7ef6e1eeeeb90edd7 /src/systemd/sd-journal.h | |
parent | journal: fix parsing of monotonic kernel timestamps (diff) | |
download | systemd-85210bffd8363e491b4c31f2d09404f9869ad0c7.tar.gz systemd-85210bffd8363e491b4c31f2d09404f9869ad0c7.tar.bz2 systemd-85210bffd8363e491b4c31f2d09404f9869ad0c7.zip |
journal: provide an API that allows client to figure out whether they need to recheck the journal manually for changes in regular intervals
Network file systems generally do not offer inotify() that would work
across the network. We hence cannot rely on inotify() exclusiely in
those case. Provide an API to determine these cases, and suggest doing
manual regular rechecks.
Note that this is not complete yet, as we need to rescan journal dirs on
network file systems explicitly to find new/removed files
Diffstat (limited to 'src/systemd/sd-journal.h')
-rw-r--r-- | src/systemd/sd-journal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/systemd/sd-journal.h b/src/systemd/sd-journal.h index 55281b134..724117303 100644 --- a/src/systemd/sd-journal.h +++ b/src/systemd/sd-journal.h @@ -124,6 +124,7 @@ int sd_journal_enumerate_unique(sd_journal *j, const void **data, size_t *l); void sd_journal_restart_unique(sd_journal *j); int sd_journal_get_fd(sd_journal *j); +int sd_journal_reliable_fd(sd_journal *j); int sd_journal_process(sd_journal *j); int sd_journal_wait(sd_journal *j, uint64_t timeout_usec); |