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

Dag-Erling Smørgrav <[email protected]>
Newsgroups gmane.os.freebsd.current
Message-ID <[email protected]>
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.

DES
-- 
Dag-Erling Smørgrav - [email protected]
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.