From: Jens Axboe Date: Tue, 8 Dec 2015 04:56:34 +0000 (-0700) Subject: iolog: ensure we always store compressed, if log_store_compressed == 1 X-Git-Tag: fio-2.2.13~38 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=19417edaa23ea4bcdb1388e12eecd5ea39db8803;ds=sidebyside iolog: ensure we always store compressed, if log_store_compressed == 1 Before this commit, we depend on log_compression= always being set. But we might want the logs store compressed, even if we don't continually compress chunks at runtime. Signed-off-by: Jens Axboe --- diff --git a/iolog.c b/iolog.c index 82b2b8a3..d7c8a45d 100644 --- a/iolog.c +++ b/iolog.c @@ -594,7 +594,7 @@ void setup_log(struct io_log **log, struct log_params *p, if (l->log_gz && !p->td) l->log_gz = 0; - else if (l->log_gz) { + else if (l->log_gz || l->log_gz_store) { pthread_mutex_init(&l->chunk_lock, NULL); p->td->flags |= TD_F_COMPRESS_LOG; }