diff options
author | Oleksii Shevchuk <alxchk@gmail.com> | 2013-03-25 18:49:03 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-03-25 17:51:06 +0100 |
commit | 26687bf8a907009dedcff79346860ed41511405e (patch) | |
tree | 3c540f4decd19e85941547bddd86987d7bf44f29 /src/journal/journal-file.h | |
parent | a9602630c64791571ca37606a0a5eabfac85820a (diff) |
journal: Add sync timer to journal server
Add option to force journal sync with fsync. Default timeout is 5min.
Interval configured via SyncIntervalSec option at journal.conf. Synced
journal files will be marked as OFFLINE.
Manual sync can be performed via sending SIGUSR1.
Diffstat (limited to 'src/journal/journal-file.h')
-rw-r--r-- | src/journal/journal-file.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/journal/journal-file.h b/src/journal/journal-file.h index cdbc8e41f6..0eab5017d7 100644 --- a/src/journal/journal-file.h +++ b/src/journal/journal-file.h @@ -106,6 +106,8 @@ int journal_file_open( JournalFile *template, JournalFile **ret); +int journal_file_set_offline(JournalFile *f); +int journal_file_set_online(JournalFile *f); void journal_file_close(JournalFile *j); int journal_file_open_reliably( |