summaryrefslogtreecommitdiffstats
path: root/src/journal/journal-file.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-10-25 05:14:51 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-10-25 05:14:51 +0100
commit8e0dfb6b8e7a0933c14ded7348e7b778a603aa37 (patch)
treedc277c14a8f76ebe851aad252baa1c6d09dc1259 /src/journal/journal-file.h
parentMerge pull request #1665 from evverx/unit-printf-fixes (diff)
parentjournal: irrelevant coding style fixes (diff)
downloadsystemd-8e0dfb6b8e7a0933c14ded7348e7b778a603aa37.tar.xz
systemd-8e0dfb6b8e7a0933c14ded7348e7b778a603aa37.zip
Merge pull request #1663 from poettering/journal-compress-fix
journal: fix error handling when compressing journal objects
Diffstat (limited to 'src/journal/journal-file.h')
-rw-r--r--src/journal/journal-file.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/journal/journal-file.h b/src/journal/journal-file.h
index f2c07356c8..898d12d992 100644
--- a/src/journal/journal-file.h
+++ b/src/journal/journal-file.h
@@ -235,3 +235,8 @@ bool journal_file_rotate_suggested(JournalFile *f, usec_t max_file_usec);
int journal_file_map_data_hash_table(JournalFile *f);
int journal_file_map_field_hash_table(JournalFile *f);
+
+static inline bool JOURNAL_FILE_COMPRESS(JournalFile *f) {
+ assert(f);
+ return f->compress_xz || f->compress_lz4;
+}