From nobody Thu Oct 12 15:02:51 2023 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 4S5tDD0Ch7z4wTc2; Thu, 12 Oct 2023 15:02:52 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S5tDC50Z5z4ZXB; Thu, 12 Oct 2023 15:02:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697122971; 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=PZM+7K3hS6tyThHz2jCKt2vbjqmMaa4Yne50ZfJJ9HU=; b=sU2571BtLMA67t2YNU7UpniFpzK8ImK/FRQ1BOexu4lsAJ4alQV4D6o15Pw+2mq31ISwHm d8uCPAnggqbOzhGYhX8gENYX8xX4o0VmauO9yOanZEy/bELe0zHQyKVGFW/A2CmMOGJT6C g3D01HGv9K+z3wy54Y1e1TAr3uIDvG+isTwY5M95L7AZCzrGNW5j9A5gYbiS7UekPuqgPL oVAvXcZajv/skSCip+rUEi6quBBIyxRDbMYc0ufs9Npd4xHQuIifZJuRG5VE+MAoRyk5pw 1dOuuZSEGotclDKRisPF+47ayQe/I40b2uvVRKA0Jd5k40Pv18TIxLQdTVV+Xw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697122971; a=rsa-sha256; cv=none; b=eO7tRw/YH7VZMNzjkU4+kCoW68PZHjK7LiztsZUFzHxTdFaPKio1xsIbNUI9ToS5SGDmLm 3zNeBDuTGWETPI8uI/Mqbsvg4BkvxeBhNz1WDTJE0AZ/S5X3/qUNwBe3Mz94REJqpeSvGW sNFYYRWJjlZiZeGd8mk6ruJjI481EHSO74kEI4X8RwRLEL+N01Mohd9K72yhTVBxkx+f2j W39TdkUnK77MeLDy2g5XAta5NgwTSeQZd0EiRZ+qRrJQG5zV6y5xN2ZI/WmKJkZIuxDoNi Sa8pZf/uHOLK5ptwJFhEV/SgfhNyPg+zZE/FTU3jphnV0oTWu2rV3hFx78jpJA== 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=1697122971; 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=PZM+7K3hS6tyThHz2jCKt2vbjqmMaa4Yne50ZfJJ9HU=; b=Hsdihk1wrgNQX14rlpbzAq84kiq7whbwnxI/5HsuZH7ZDAcG41J9L+Sfl9ycUdM+eexPF9 lI9KXcC6hO6qvfR3fO22etPUrj/xKCbVtCC9jHaUAWLm89h0Zl1IJm9scmq64dT6iGKzDY gZvHuulG7qf+PZD/qlychwJWESvIvdUnwYGQxAR0/EUdNj8I5h1cCzj/DpjyXen6INRFOc UaBFmUhR5q7PAW4X8+3lz0Samo7e7iWlkqwk107LvSzEFQdLCmviWvFFEEnt/ekYtuPRh2 V70gm7ANEjTbpTc/aRJ2MGgP0DkElWgk/Y3cU2riCcDao7Cmg4oKZFOF7kLAOA== 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 4S5tDC43v4z17xX; Thu, 12 Oct 2023 15:02:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39CF2pFv057097; Thu, 12 Oct 2023 15:02:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39CF2pa5057094; Thu, 12 Oct 2023 15:02:51 GMT (envelope-from git) Date: Thu, 12 Oct 2023 15:02:51 GMT Message-Id: <202310121502.39CF2pa5057094@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: 4bf2e34a35ec - releng/14.0 - fd: Add sysctl flag CTLFLAG_TUN to loader tunables 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zlei X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.0 X-Git-Reftype: branch X-Git-Commit: 4bf2e34a35ec10eaa43a3eb867f8e8fd34974264 Auto-Submitted: auto-generated The branch releng/14.0 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=4bf2e34a35ec10eaa43a3eb867f8e8fd34974264 commit 4bf2e34a35ec10eaa43a3eb867f8e8fd34974264 Author: Zhenlei Huang AuthorDate: 2023-10-09 10:30:21 +0000 Commit: Zhenlei Huang CommitDate: 2023-10-12 14:59:52 +0000 fd: Add sysctl flag CTLFLAG_TUN to loader tunables The following sysctl variables are actually loader tunables. Add sysctl flag CTLFLAG_TUN to them so that `sysctl -T` will report them correctly. 1. kern.maxfiles 2. kern.maxfilesperproc No functional change intended. Reviewed by: kib, imp Approved by: re (gjb) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D42113 (cherry picked from commit 2af5ce5b5efb0cf6514acdc4a8b4058221641c39) (cherry picked from commit d9aa723347825418c742164c3e9a77d1e4b6943d) --- sys/kern/kern_descrip.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index 35046c856d54..6ed824e229d6 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -5090,10 +5090,11 @@ DB_SHOW_COMMAND_FLAGS(files, db_show_files, DB_CMD_MEMSAFE) } #endif -SYSCTL_INT(_kern, KERN_MAXFILESPERPROC, maxfilesperproc, CTLFLAG_RW, +SYSCTL_INT(_kern, KERN_MAXFILESPERPROC, maxfilesperproc, + CTLFLAG_RWTUN | CTLFLAG_NOFETCH, &maxfilesperproc, 0, "Maximum files allowed open per process"); -SYSCTL_INT(_kern, KERN_MAXFILES, maxfiles, CTLFLAG_RW, +SYSCTL_INT(_kern, KERN_MAXFILES, maxfiles, CTLFLAG_RWTUN | CTLFLAG_NOFETCH, &maxfiles, 0, "Maximum number of files"); SYSCTL_INT(_kern, OID_AUTO, openfiles, CTLFLAG_RD,