summaryrefslogtreecommitdiff
path: root/src/journal/journal-file.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-10-13 05:19:35 +0200
committerLennart Poettering <lennart@poettering.net>2011-10-13 05:19:35 +0200
commit0ac38b707212e9aa40e25d65ffbae648cc9116f5 (patch)
tree85b591e980896be34196e174a7a8f4217d49a280 /src/journal/journal-file.h
parent250d54b5bee6a46fe1c1626211e3a7e238eda628 (diff)
journal: implementation rotation
Diffstat (limited to 'src/journal/journal-file.h')
-rw-r--r--src/journal/journal-file.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/journal/journal-file.h b/src/journal/journal-file.h
index 55cc7153af..4665f4da38 100644
--- a/src/journal/journal-file.h
+++ b/src/journal/journal-file.h
@@ -32,6 +32,8 @@ typedef struct JournalFile {
int fd;
char *path;
struct stat last_stat;
+ mode_t mode;
+ int flags;
int prot;
bool writable;
@@ -63,7 +65,7 @@ typedef struct JournalCursor {
uint64_t xor_hash;
} JournalCursor;
-int journal_file_open(const char *fname, int flags, mode_t mode, JournalFile **ret);
+int journal_file_open(const char *fname, int flags, mode_t mode, JournalFile *template, JournalFile **ret);
void journal_file_close(JournalFile *j);
@@ -83,4 +85,9 @@ int journal_file_prev_entry(JournalFile *f, Object *o, Object **ret, uint64_t *o
void journal_file_dump(JournalFile *f);
+int journal_file_rotate(JournalFile **f);
+
+int journal_directory_vacuum(const char *directory, uint64_t max_use, uint64_t min_free);
+
+
#endif