From f4b4781191e8edfb5690e4447166e3ba7bcb48f5 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 7 Oct 2011 23:03:07 +0200 Subject: journal: split user logs into their own journal files --- src/journal/journal-private.h | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) (limited to 'src/journal/journal-private.h') diff --git a/src/journal/journal-private.h b/src/journal/journal-private.h index 914b73a40b..3277d29542 100644 --- a/src/journal/journal-private.h +++ b/src/journal/journal-private.h @@ -29,6 +29,31 @@ #include "util.h" #include "sd-id128.h" +typedef struct JournalFile { + int fd; + char *path; + struct stat last_stat; + int prot; + bool writable; + + Header *header; + + HashItem *hash_table; + void *hash_table_window; + uint64_t hash_table_window_size; + + uint64_t *bisect_table; + void *bisect_table_window; + uint64_t bisect_table_window_size; + + void *window; + uint64_t window_offset; + uint64_t window_size; + + Object *current; + uint64_t current_offset; +} JournalFile; + typedef struct JournalCoursor { sd_id128_t file_id; sd_id128_t boot_id; @@ -38,8 +63,6 @@ typedef struct JournalCoursor { uint64_t xor_hash; } JournalCoursor; -typedef struct JournalFile JournalFile; - int journal_file_open(const char *fname, int flags, mode_t mode, JournalFile **ret); void journal_file_close(JournalFile *j); -- cgit v1.2.3-54-g00ecf