chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build-sys: make test output a bit nicer
[elogind.git]
/
src
/
journal
/
journal-file.h
diff --git
a/src/journal/journal-file.h
b/src/journal/journal-file.h
index 7b1cd4285493c7a1b1261b31eb1ce851ec89b5fe..21b0821b6b246fbb5cf98cb82a4cded6cc1f64b4 100644
(file)
--- a/
src/journal/journal-file.h
+++ b/
src/journal/journal-file.h
@@
-42,19
+42,28
@@
typedef struct JournalMetrics {
uint64_t keep_free;
} JournalMetrics;
uint64_t keep_free;
} JournalMetrics;
+typedef enum direction {
+ DIRECTION_UP,
+ DIRECTION_DOWN
+} direction_t;
+
typedef struct JournalFile {
int fd;
typedef struct JournalFile {
int fd;
- char *path;
- struct stat last_stat;
+
mode_t mode;
int flags;
int prot;
mode_t mode;
int flags;
int prot;
- bool writable;
- bool compress;
- bool seal;
+ bool writable:1;
+ bool compress:1;
+ bool seal:1;
+
+ bool tail_entry_monotonic_valid:1;
- bool tail_entry_monotonic_valid;
+ direction_t last_direction;
+
+ char *path;
+ struct stat last_stat;
Header *header;
HashItem *data_hash_table;
Header *header;
HashItem *data_hash_table;
@@
-90,11
+99,6
@@
typedef struct JournalFile {
#endif
} JournalFile;
#endif
} JournalFile;
-typedef enum direction {
- DIRECTION_UP,
- DIRECTION_DOWN
-} direction_t;
-
int journal_file_open(
const char *fname,
int flags,
int journal_file_open(
const char *fname,
int flags,
@@
-107,7
+111,6
@@
int journal_file_open(
JournalFile **ret);
int journal_file_set_offline(JournalFile *f);
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(
void journal_file_close(JournalFile *j);
int journal_file_open_reliably(