diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-07-24 02:02:07 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-07-24 02:02:07 +0200 |
commit | bca9e39dfadaefc4b02c0dd378adc3d6221071de (patch) | |
tree | 79208085005accfe131dd5edb4ee8afdda4746db /src/journal/journal-verify.c | |
parent | 8dc37a85255f68d62f7af66696cbf6a66401fb2a (diff) |
journal: explain the error when we find a non-DATA object that is compressed
Only objects of type DATA may be compressed, generate a message about
that, like we do for all other errros.
Diffstat (limited to 'src/journal/journal-verify.c')
-rw-r--r-- | src/journal/journal-verify.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/journal/journal-verify.c b/src/journal/journal-verify.c index 637162e305..0a8f30ceca 100644 --- a/src/journal/journal-verify.c +++ b/src/journal/journal-verify.c @@ -123,8 +123,10 @@ static int journal_file_object_verify(JournalFile *f, uint64_t offset, Object *o * other objects. */ if ((o->object.flags & OBJECT_COMPRESSED_XZ) && - o->object.type != OBJECT_DATA) + o->object.type != OBJECT_DATA) { + error(offset, "Found compressed object that isn't of type DATA, which is not allowed."); return -EBADMSG; + } switch (o->object.type) { |