[systemd-devel] Skipping temporary coredump file during coredump generation

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Tue Dec 6 01:39:57 UTC 2016


On Sun, Dec 04, 2016 at 06:24:45AM +0000, P.R.Dinesh wrote:
> Thank you for the insight.
> Shall I propose the patch with the following behaviour.
> 
> Check if "backtrace is enabled" or "compression is not enabled or not
> supported"
> Then store the temporary uncompressed file.
> If not skip the uncompressed file generation.
> 
> if( backtrace_enabled || ( compression_not_enabled ||
> compress_not_supported))
> {
>   generate and store uncompressed coredump
> }
> else
> {
>   skip uncompressed coredump file, compress the STDIN COREFILE.
> }

Sure. To make things even nicer, if backtrace_enabled=1, but we don't
have enough disk space to write the uncompressed image, we could force
backtrace_enabled=0 and fall back to the else branch.

Zbyszek


More information about the systemd-devel mailing list