From nobody Tue Jun 17 20:26:46 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 4bMJLZ31Dsz5pjcp; Tue, 17 Jun 2025 20:26:46 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bMJLZ258pz3mpB; Tue, 17 Jun 2025 20:26:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750192006; 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=HU+vJHE/EPF1rdp/Fq+oXN3qPsksaU6R9eezGQJ8oC4=; b=ChndKypzUQhGxr21PKq3ZmvWkebL6Zczs2/i7jaBh3/PnHDuVE4S8kcVPjWSldBi9HFMJP AciR1AVm5XDYqeu6eqkOPsxtWUplkXJhN7IaKh4i+ZKPIirM4/1OUaH3mhzJ12uJqENoGe inObBqMgKxsAbFSIfVVKeg7FpX0BuBFCG28xf1Msgf7Jl28mg/RQ+ujfUzZaLVSysHrPEj gKogKnCOFAh2b1H1gw5JzyQDsj5cVueZu7Ks+tiTKm8Fa9MkCbC/qgmAERxn11zBPkQdUV BVWKHK0xqmiqxvSIM1lmrbNbz07YlNGQNSFLnWHLvZeJoLgKzQxCoQXXmBWmZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750192006; 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=HU+vJHE/EPF1rdp/Fq+oXN3qPsksaU6R9eezGQJ8oC4=; b=Oz+L/mepTTPqTwaxISNfs8x0BJkB9dl0h4UhIyTxRyW1sAc6wmf5sZkaPBZ31rj5iWpHRg HQMbBcuWTmvt/O2uIlpD7dRiHkC41HUdHjbndQeiSK9bqz2MkIgxNwM082BO59HAjLzMvO abDMLrT25GV04msnwSsAbRcjgY93M8CEyZcBnXg5p65CvCzO4lIryksAsyEhw8hXYvsat1 HTj3KLD8/9QVxbcVDXxCLOyPv8RgwsMLtfIf/pQ4bZjpCJaRS0gk85d9dGLZv8J1+b5fiP IgT5QXSIUO1KQas+iY0RCYx+SsIwx3VMaX1G3ol66j0GN/31EPQWusleHseDog== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1750192006; a=rsa-sha256; cv=none; b=Ky3TUC5GvM8IlGJ9IKMzVjlbigcs/YPJg46cpKdVUfknQltvAYwbsvVjlphaRWbXZuoJNP hkqkmVfVSdDV7xApeAqoUPucHTIng4amwTaI8L7dUyJbpfH/ZY3Thnl5J/1G2fQw2jiDzL Ws768kwHxeFOLXZmGLW4AOhatQ4j807n8MTOilPdeivfkGIchNxUTwWrjt4nE829y3ABqW 9izqJ2Ens9CDNbcrL7biOXirdUB9ueXkN5eM2W6QT4VcVlAYiyVuQzuvQyS4FNvIAy+fwO okupe5WY0aMIeSFk4w8ARDmRKyRPItPj5ntYEtmDIovAXPFYwG9DJDuin7RMjw== 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 4bMJLZ1VJ3zym1; Tue, 17 Jun 2025 20:26:46 +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 55HKQks5073125; Tue, 17 Jun 2025 20:26:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 55HKQkaG073122; Tue, 17 Jun 2025 20:26:46 GMT (envelope-from git) Date: Tue, 17 Jun 2025 20:26:46 GMT Message-Id: <202506172026.55HKQkaG073122@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Cy Schubert Subject: git: abd3c20a030c - main - mountcritlocal: Check only first byte for comment 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: cy X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: abd3c20a030cbbf97c0188db3d2543da7fa296b2 Auto-Submitted: auto-generated The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=abd3c20a030cbbf97c0188db3d2543da7fa296b2 commit abd3c20a030cbbf97c0188db3d2543da7fa296b2 Author: Cy Schubert AuthorDate: 2025-06-17 14:15:03 +0000 Commit: Cy Schubert CommitDate: 2025-06-17 19:59:36 +0000 mountcritlocal: Check only first byte for comment Check for a "#" at the start of the line regardless whether it is its own token or not. We avoid unecessary calls to rc.d/zpool. Suggested by: ivy Fixes: b6e33f0cd536 --- libexec/rc/rc.d/mountcritlocal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/rc/rc.d/mountcritlocal b/libexec/rc/rc.d/mountcritlocal index 6dce672657fc..5b80d4bfbb50 100755 --- a/libexec/rc/rc.d/mountcritlocal +++ b/libexec/rc/rc.d/mountcritlocal @@ -28,7 +28,7 @@ mountcritlocal_start() esac while read a b vfstype rest; do - if [ "$vfstype" = "zfs" -a "$a" != "#" ]; then + if [ "$vfstype" = "zfs" -a "${a#\#}" = "$a" ]; then # zpool is needed for legacy ZFS echo 'Importing zpools for legacy ZFS' /etc/rc.d/zpool start