From nobody Thu Mar 19 17:05:56 2026 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4fcBsx54pPz6Vfvh for ; Thu, 19 Mar 2026 17:05:57 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fcBsx30dBz3l1p; Thu, 19 Mar 2026 17:05:57 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1773939957; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FYkkQBRwutU+3bhmnRGRgh2NILcMhhz5cKV+Uo7UfK0=; b=Z2IvdfHk3P7CJyA4dC7vh45na/NcJagwT3tj/6dN7m+gz8p9zoTNg9aUSiLrzO2Fx9XbRD nJthuyn1gyDZGonttCOG0G+5at1fSBi38zzwHChr1brkiIdxM8PdBFPhU99wsnaLlqlhK7 UReQti1VlUTQBkzlPJYlAY6iW1zQ1ubL1rQP/QUX8uOLB40HHmyZ4t0Rtj+F5ZO1wAxD6y NKpVGWEXYATiPmSfLmfwKhDiCjTNJufmGQNLJUPAOpnh4WfAQtofV1VxY/jYM3cYUzaNVm IbdfxaKmnR55k2qPsQ8LlhtchvlNrfWa5cT27OJbW0LZu6ix7dl2szs+3AAGXQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1773939957; a=rsa-sha256; cv=none; b=FHl0sKak5mz1Ghj7Q9q+jCIw39Vf3HceoMxTGeZ3ogj3NYbPnVIp5TMjNrQVWQRDDZ073O ewisV5Q12o2eJVGLRJOwJq1cFyyhQtKG6r6N0m4WyBOhFGW1FHBz++jxlRAYGYQXbj9m/U ggqE/Pl5G+NUT9nlLqFHG/YWbiWAU7HHOWmNl414mwia+uATTPqYNEPZ1U8oXlaPxqMMza PBshTHk/GAv0lhPz9jSgM0fmGD3atPkbZUMZikL6r9SFex6yXJzyBvVwSfu7cEfURJnNDR EveovPQkie2Dh+LF+2t2A+eNsd7QjvRGdCrUHcPw/8dR1FF1o4L5P5ApuocFxg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1773939957; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FYkkQBRwutU+3bhmnRGRgh2NILcMhhz5cKV+Uo7UfK0=; b=IcwmsPS41jur88v2MkuQ2n2D+70OAxrbde5Nh+QvnDOqXoopjjECDzmp3bRq+7OFNPCo77 NL2dg4YahIy1jkvuxyhaNItPacZSW42p6U8VHYF2u7ieb534Mmr5XFsXljseW1JUcMyynb aXxi2Ydjwd29DlbdsQQnh1z7uRxoX1XkFD1H5PrHxTUwo4fw5aH7c0v7b8XLe6fpKdweBT GkplXO4Cm8KsvkrFWOzhrBxLPYEbZ6G6ImxFDPjpmxRKaDUzcXgGwC9Pa6hezdzg+lNE2/ hpSVL3lDpv/beVGGjiGD72+1qUj9/OSbDZQqMTLp1mgPviELs9N/tfgjr4sBBQ== Received: from ltc.des.dev (lfbn-nan-1-698-103.w86-236.abo.wanadoo.fr [86.236.35.103]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: des) by smtp.freebsd.org (Postfix) with ESMTPSA id 4fcBsx1nSzzsmg; Thu, 19 Mar 2026 17:05:57 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.dev (Postfix, from userid 1001) id 2B2AF4AB8A; Thu, 19 Mar 2026 18:05:56 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Warner Losh Cc: Martin Matuska , h v , FreeBSD Current Subject: Re: zfs module not loaded anymore on e.g MINIMAL 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 +0100") References: <5913b3ac-2ed7-42ab-9c26-0d204c38c578@gmail.com> <299d29ce-98b9-4daf-aed7-a8cc9cd3a45f@FreeBSD.org> <86a4w3517o.fsf@ltc.des.dev> <861phf4uu3.fsf@ltc.des.dev> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Thu, 19 Mar 2026 18:05:56 +0100 Message-ID: <86wlz73g23.fsf@ltc.des.dev> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Dag-Erling Sm=C3=B8rgrav writes: > Warner Losh 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 --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org