From a2227729406e17de010d05d6ca18edd151f97e68 Mon Sep 17 00:00:00 2001 From: Moinak Ghosh Date: Mon, 27 Aug 2012 22:24:23 +0530 Subject: [PATCH] Fix single chunk flag handling during decompression. Update docs. --- README.md | 3 +++ main.c | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 4457178..9fe9b59 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,9 @@ NOTE: The option "libbsc" uses Ilya Grebnov's block sorting compression library '-M' - Display memory allocator statistics '-C' - Display compression statistics +NOTE: It is recommended not to use '-L' with libbsc compression since libbsc uses + LZP internally as well. + Environment Variables ===================== diff --git a/main.c b/main.c index fcc48c6..23ee188 100644 --- a/main.c +++ b/main.c @@ -527,6 +527,10 @@ start_decompress(const char *filename, const char *to_filename) enable_rabin_scan = 1; } + if (flags & FLAG_SINGLE_CHUNK) { + props.is_single_chunk = 1; + } + nprocs = sysconf(_SC_NPROCESSORS_ONLN); if (nthreads > 0 && nthreads < nprocs) nprocs = nthreads;