HomeFreeBSD

Generalize the gzio API.

Description

Generalize the gzio API.

We currently use a set of subroutines in kern_gzio.c to perform
compression of user and kernel core dumps. In the interest of adding
support for other compression algorithms (zstd) in this role without
complicating the API consumers, add a simple compressor API which can be
used to select an algorithm.

Also change the (non-default) GZIO kernel option to not enable
compressed user cores by default. It's not clear that such a default
would be desirable with support for multiple algorithms implemented,
and it's inconsistent in that it isn't applied to kernel dumps.

Reviewed by: cem
Differential Revision: https://reviews.freebsd.org/D13632

Details

Provenance
markjAuthored on
Reviewer
cem
Differential Revision
D13632: Rework the gzio API.
Parents
rS327706: Integrate zstd into the kernel
Branches
Unknown
Tags
Unknown