summaryrefslogtreecommitdiff
path: root/src/journal/journal-internal.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-10-26 20:05:19 +0200
committerLennart Poettering <lennart@poettering.net>2012-10-26 20:07:33 +0200
commit85210bffd8363e491b4c31f2d09404f9869ad0c7 (patch)
tree8afc2d12f00925280a63dac7ef6e1eeeeb90edd7 /src/journal/journal-internal.h
parente9f600f2fb4b0df55c7a8fb4b4d09f9979997223 (diff)
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/journal/journal-internal.h')
-rw-r--r--src/journal/journal-internal.h2
1 files changed, 2 insertions, 0 deletions
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);