From 85210bffd8363e491b4c31f2d09404f9869ad0c7 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 26 Oct 2012 20:05:19 +0200 Subject: 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 --- src/journal/journal-internal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/journal/journal-internal.h') diff --git a/src/journal/journal-internal.h b/src/journal/journal-internal.h index f68ca996a8..75a4129e5b 100644 --- a/src/journal/journal-internal.h +++ b/src/journal/journal-internal.h @@ -119,6 +119,8 @@ struct sd_journal { char *unique_field; JournalFile *unique_file; uint64_t unique_offset; + + bool on_network; }; char *journal_make_match_string(sd_journal *j); -- cgit v1.2.3-54-g00ecf