Re: zfs module not loaded anymore on e.g MINIMAL
Date: Thu, 19 Mar 2026 17:05:56 UTC
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. DES -- Dag-Erling Smørgrav - des@FreeBSD.org