Re: zfs module not loaded anymore on e.g MINIMAL
- In reply to: Dag-Erling_Smørgrav : "Re: zfs module not loaded anymore on e.g MINIMAL"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 20 Mar 2026 04:56:50 UTC
On Thu, Mar 19, 2026 at 10:05 AM Dag-Erling Smørgrav <des@freebsd.org> wrote: > Dag-Erling Smørgrav <des@FreeBSD.org> writes: > > Warner Losh <imp@bsdimp.com> writes: > > > Any reason zstd can't be a module? > > I had the same thought but it's going to take a bit of work. We'll have > > to split up sys/kern/subr_compress.c into separate files for each > > backend (currently gzio and zstdio), add module Makefiles, and figure > > out how to make dumps dynamically use whatever compression is available. > > Actually I think this last bit is already in place. We just need to > have each compression method register with subr_compress on load (and > unregister on unload, which I don't think subr_compress currently > supports). We also need to keep a running count of compression / > decompression contexts to prevent unloading a method while it's in use. > So I guess go ahead with the kernel config changes (though I don't like having to do that, there's no easy alternative). I wonder what the best way to document this so that it doesn't get list in the future... Warner