HomeFreeBSD

clamp kernel dump compression level when using gzip

Description

clamp kernel dump compression level when using gzip

If the configured compression level for kernel dumps
it outside the supported range, clamp it to the closest
supported level. Previously, dumpon would fail.

zstd already does this internally, so the compressor
needs no change.

Reviewed by: cem markj
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D23765

Details

Provenance
vangyzenAuthored on
Reviewer
cem
Differential Revision
D23765: clamp kernel dump compression level when using gzip
Parents
rS358186: truncate(2): extending the file is required by POSIX 2008
Branches
Unknown
Tags
Unknown