]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
clamp kernel dump compression level when using gzip
authorvangyzen <vangyzen@FreeBSD.org>
Thu, 20 Feb 2020 23:53:48 +0000 (23:53 +0000)
committervangyzen <vangyzen@FreeBSD.org>
Thu, 20 Feb 2020 23:53:48 +0000 (23:53 +0000)
commit6bd5de99f6b14a189d7d2cb1ee40e4a43529913e
tree19f1ec1720047e943968a635b016dcb4acdca766
parent36dd588f390c11325e2389ce06cf839bbb24cbb5
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
sys/kern/subr_compressor.c