Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Mar 2026 18:05:56 +0100
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@FreeBSD.org>
To:        Warner Losh <imp@bsdimp.com>
Cc:        Martin Matuska <mm@freebsd.org>,  h v <henry.vogt@gmail.com>,  FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: zfs module not loaded anymore on e.g MINIMAL
Message-ID:  <86wlz73g23.fsf@ltc.des.dev>
In-Reply-To: <861phf4uu3.fsf@ltc.des.dev> ("Dag-Erling =?utf-8?Q?Sm=C3=B8r?= =?utf-8?Q?grav=22's?= message of "Thu, 19 Mar 2026 18:01:24 %2B0100")
References:  <5913b3ac-2ed7-42ab-9c26-0d204c38c578@gmail.com> <CANCZdfq8gxi2ywvfvCdC%2Bsoqu_9-XPFrvqNNeGqjsJbUfkLoXg@mail.gmail.com> <fdb20aa1-46e6-41ff-83a4-8549ed56c316@gmail.com> <CANCZdfpQnALFj%2B5Hd0xC-5yO3wzjOmZG9TYQL6tWbHr_%2By%2BRFQ@mail.gmail.com> <299d29ce-98b9-4daf-aed7-a8cc9cd3a45f@FreeBSD.org> <86a4w3517o.fsf@ltc.des.dev> <CANCZdfpB7HoeQe9_rxHRQocYGM8DcZn9un-9YdmjBS8tzr6vsQ@mail.gmail.com> <861phf4uu3.fsf@ltc.des.dev>

index | next in thread | previous in thread | raw e-mail

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


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86wlz73g23.fsf>