diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-06-25 20:53:40 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-06-26 01:41:04 -0400 |
commit | 347272731e15d3c4a70fad7ccd7185e8e8059d01 (patch) | |
tree | 11c1d96506fab4ed3240a4f432763e774fd03f6e /src/journal/test-compress.c | |
parent | cfd652ed617282b06ccbdedb7adc6963b901dde7 (diff) |
coredump: make compression configurable
Add Compression={none,xz} and CompressionLevel=0-9 settings. Defaults
are xz/6.
Compression=filesystem may be added later.
I picked "xz" for the compression "type", since we might want to add
different compressors later on. XZ is fairly memory and CPU intensive, and
embedded users will likely want to use LZO or some other lightweight compression
mechanism.
Diffstat (limited to 'src/journal/test-compress.c')
-rw-r--r-- | src/journal/test-compress.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/test-compress.c b/src/journal/test-compress.c index b098ef93a8..0806145d4b 100644 --- a/src/journal/test-compress.c +++ b/src/journal/test-compress.c @@ -84,7 +84,7 @@ static void test_compress_stream(const char *srcfile) { assert_se((dst = mkostemp_safe(pattern, O_RDWR|O_CLOEXEC)) >= 0); - r = compress_stream(src, dst, -1); + r = compress_stream(src, dst, 1, -1); assert(r == 0); assert_se(asprintf(&cmd, "xzcat %s | diff %s -", pattern, srcfile) > 0); |