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/compress.h | |
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/compress.h')
-rw-r--r-- | src/journal/compress.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/compress.h b/src/journal/compress.h index f37a6b3d14..f25fe86abd 100644 --- a/src/journal/compress.h +++ b/src/journal/compress.h @@ -35,5 +35,5 @@ bool uncompress_startswith(const void *src, uint64_t src_size, const void *prefix, uint64_t prefix_len, uint8_t extra); -int compress_stream(int fdf, int fdt, off_t max_size); +int compress_stream(int fdf, int fdt, uint32_t preset, off_t max_size); int decompress_stream(int fdf, int fdt, off_t max_size); |