From nobody Fri Oct 24 14:42:24 2025 X-Original-To: dev-commits-src-all@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 4ctQbj03Zcz6DcPW; Fri, 24 Oct 2025 14:42:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ctQbh6bPlz3HCh; Fri, 24 Oct 2025 14:42:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1761316944; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KvlQXi9Q2Ya01zPj2vQKA1Vq2GtcdZCdHxeH2N5PBpg=; b=BfcrOMlBhsSjnDBpMp9A1e07TS7MRzSpP+yEoNDSuHMS4tLLC3oi01xy1PCGQ8z6gu3iN/ ZApPa8mdZ7BKEuMGsfXU9fvhGTLPcBQKq9m1kvfVNmluQb7x/FPUd5eGzRGkVXTMtLPXwu 8IuYY0vGMAmv5/vLPAW7mx5AyjdeuWwERL/QsMVKJWGs8cKi0JVqDbNmV4qNKPyj1nxfk8 X3ZJVQIfi6khL+xqfbHhPtYQ9yhg9TBit0bdQ2eval486LdkZ0WzLapW1XaKXATqR6UrwY W24hrjSeQdR3eLXUPOQiOZFb0khKwplZd18rrfsV6fofisbRW+ty1pW2iZdOqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1761316944; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KvlQXi9Q2Ya01zPj2vQKA1Vq2GtcdZCdHxeH2N5PBpg=; b=fcax62J64N6pNcwIUtYMrahvtNRkdoSV9CheUAzopuZeVyiyJQC7XZzPHke7q1hBT82nJp 6l7+NyogqvWQlHIOP1dPitOFaLOLZhGnAEGmPAFuKgcBze99H4qSxY0bDXV3TjocPQDi4+ v2HcCnFjcF8tfVby22JOwP35/AoXqkX/nmtJkkY9IAVJ4HJHEpaoEC4OfrWoWk3B9q07QU hK/1+K3RYm1DoNCe13WXboz9XbQVG30mbBxR1dpxjTNXKuShj3S1KtVJl1HcE8uqtuEBgL bnoXGgOJP09GZoJH1yWxAy8bt1bTbCe+nxIk4ygvG6M3se8WXQ1q5qD7pj4YqQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1761316944; a=rsa-sha256; cv=none; b=n0LgHEGE2w4XpIJB5bxYTvlIWbmEhWXP2tFodxN+FeF5UZWfcf+xFyfuWATSP5jVEEtPlj 4T56JN6nvNGNXzxhnmWueVcVnT/sUNa47+fYOirpiJ8Auw9/SHcgV7memJlNcEb8sExY3i PxurZLXKPQxTJiGm9WESuY7I1ibdm9mX6p5RA9WwCO7sgl0zpfuqueKNIEI4lFwK4lW4Oi 6T3WHMMvbZqxfsDRAyZVa6RPfwJo0VeCcArsCKFmdj65PPhrE4JvsIik9WkmOOwv5KSM0s O3NLvguWTNWStBD10RFG5SB9QIvHU5/by2Ez6S/HGUf10fb+YI7PGNP4J5a+ZA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4ctQbh66Plz14xN; Fri, 24 Oct 2025 14:42:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 59OEgOU4037605; Fri, 24 Oct 2025 14:42:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 59OEgOZO037602; Fri, 24 Oct 2025 14:42:24 GMT (envelope-from git) Date: Fri, 24 Oct 2025 14:42:24 GMT Message-Id: <202510241442.59OEgOZO037602@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: ae17bca63f0a - main - geom: zero: Let sysctls .byte and .clear to be settable in loader List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: 0mp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ae17bca63f0a03e6e46ea679a5be7f8851f82099 Auto-Submitted: auto-generated The branch main has been updated by 0mp: URL: https://cgit.FreeBSD.org/src/commit/?id=ae17bca63f0a03e6e46ea679a5be7f8851f82099 commit ae17bca63f0a03e6e46ea679a5be7f8851f82099 Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2025-09-27 15:21:13 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2025-10-24 14:38:48 +0000 geom: zero: Let sysctls .byte and .clear to be settable in loader There is no reason to not allow kern.geom.zero.byte and kern.geom.zero.clear to be settable as a tunable. Reviewed by: imp, markj Approved by: markj (mentor) MFC after: 1 week Event: EuroBSDCon 2025 Differential Revision: https://reviews.freebsd.org/D52763 --- sys/geom/zero/g_zero.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/geom/zero/g_zero.c b/sys/geom/zero/g_zero.c index e9934ba6c784..7952147d660a 100644 --- a/sys/geom/zero/g_zero.c +++ b/sys/geom/zero/g_zero.c @@ -46,11 +46,11 @@ static SYSCTL_NODE(_kern_geom, OID_AUTO, zero, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, "GEOM_ZERO stuff"); static int g_zero_clear = 1; SYSCTL_PROC(_kern_geom_zero, OID_AUTO, clear, - CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE, &g_zero_clear, 0, + CTLTYPE_INT | CTLFLAG_RWTUN | CTLFLAG_MPSAFE, &g_zero_clear, 0, g_zero_clear_sysctl, "I", "Clear read data buffer"); static int g_zero_byte = 0; -SYSCTL_INT(_kern_geom_zero, OID_AUTO, byte, CTLFLAG_RW, &g_zero_byte, 0, +SYSCTL_INT(_kern_geom_zero, OID_AUTO, byte, CTLFLAG_RWTUN, &g_zero_byte, 0, "Byte (octet) value to clear the buffers with"); static struct g_provider *gpp;