]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/coredump/coredump.c
coredump: make compression configurable
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 26 Jun 2014 00:53:40 +0000 (20:53 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 26 Jun 2014 05:41:04 +0000 (01:41 -0400)
commit347272731e15d3c4a70fad7ccd7185e8e8059d01
tree11c1d96506fab4ed3240a4f432763e774fd03f6e
parentcfd652ed617282b06ccbdedb7adc6963b901dde7
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.c
src/journal/compress.h
src/journal/coredump.c
src/journal/test-compress.c