journal: don't try to compress without XZ

otherwise the header contains the HEADER_INCOMPATIBLE_COMPRESSED
flag even though the data is not compressed and reading the journal
fails.
This commit is contained in:
Michael Olbrich 2012-09-03 15:46:44 +02:00 committed by Lennart Poettering
parent b3d284696c
commit 48b617399d
1 changed files with 2 additions and 0 deletions

View File

@ -2021,7 +2021,9 @@ int journal_file_open(
f->flags = flags;
f->prot = prot_from_flags(flags);
f->writable = (flags & O_ACCMODE) != O_RDONLY;
#ifdef HAVE_XZ
f->compress = compress;
#endif
f->seal = seal;
if (mmap_cache)