From 347272731e15d3c4a70fad7ccd7185e8e8059d01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 25 Jun 2014 20:53:40 -0400 Subject: 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. --- src/journal/compress.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/journal/compress.h') diff --git a/src/journal/compress.h b/src/journal/compress.h index f37a6b3d1..f25fe86ab 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); -- cgit v1.2.3