Re: zfs module not loaded anymore on e.g MINIMAL

Warner Losh <[email protected]>
Newsgroups gmane.os.freebsd.current
Message-ID <CANCZdfpF7GYLRPWvRSX1uKqKLZGPZB5Bg-Sd8t3xabVSHoCeOg@mail.gmail.com>
On Thu, Mar 19, 2026 at 10:05 AM Dag-Erling Smørgrav <[email protected]>
wrote:

> Dag-Erling Smørgrav <[email protected]> writes:
> > Warner Losh <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.