From nobody Wed Oct 07 16:53:38 2026 X-Original-To: dev-commits-src-main@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 4j0K2W2LMqz6w9df for ; Wed, 07 Oct 2026 16:53:39 +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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4j0K2W1Gdsz4WX0 for ; Wed, 07 Oct 2026 16:53:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1791392019; 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=yvSTrjS/7px/Q3WzvYOakOfn4/CbVegOEgGbHezV4hc=; b=gYlYUpOjHz2wpPRDkwISCHzGigWILUBAp1gc9qtu9yn3LKnsjc5AOrrglOf9r/K3msyohu T1r8wIQ/rxYNNzEYgOJQc3NYwe+gOxemBX4X6NWt7Ob6/tbd+ygAUqPGnZlycrInSsnNaE chgnpjvEWRkQ4ZuYtYNir55JUH+MCm6RHt2dimn/UbBzh9nu1yj4eSMXBIEGE+exCELa6d 3REHc847zEpnSazrZBnBBYL3T72ikyEMGaPup0PSxBE1OIh886UiLwNx4/oR/BCAgmPb06 4KpWNHh153YWkZk+5Oc884OJPuPpjRrGuQjEvG2BAbHYnvikVkMoWiTZCkhcoA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1791392019; b=xlIKfiAdnreHNzNARzmnC0m/ySVxzJ61LeNVZJeuJvaZik16M102fynOUI2f6lOcD/AcPe 9o8oYwajQUSeYjO/ynE+lE/OmOi982NHRSEZCk3Ciszegi0HPQ4TWXVJfMvmJdcSj+cP8l cX7ezHya5AN0407Xf2wKaIqND6+44s6IKyNJ8c+IF1kS8CYCnX+2dpsJt35vWY2DZYua6F whWd+aaKXEvZgC8I318LjyKLI3utTF3FZArGMhFz+F6T9r44Nu1dolQRTwwGwzOZosv70X 8n+wJjzJ/bYfaaFmhP/Td24QwtsZSYqPI2MNC4GCjtyVCNC2Y9XN5+HAyzv7ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1791392019; 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=yvSTrjS/7px/Q3WzvYOakOfn4/CbVegOEgGbHezV4hc=; b=sy6qy2Z1wsABkt/zTm/edC7/r8zOzr71QfI6/WownLUr9a49AwzGI5+nLPdYD5xCV0E2WV gTeDnhx9DiDJlVd7ydkQtvfvHKxMqh3BzX/Vv7OzhsIGQYZqsswXiOCC3SxouDXdgS1ZWv pmuxO6ufJCTfvDOR+PZW2a27kRdBMMdE6ITfaOgJDQFDsQJiWkSDJYE6QDo0vEpS1CKK+R vxvW95ZAnlWPHwLHkrpIDpobJiF8UfYWUHRq0sY06CXJIEqpGQsjEN8w1aOIQEYggPkJP7 ic/96eOwphr+d7xUfVi2BkarT7IyvOuz3FZkKd3Y3p+p0rCCD4jgny0ulqZPeg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4j0K2W01MCz12TF for ; Wed, 07 Oct 2026 16:53:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 36723 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 07 Oct 2026 16:53:38 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Christos Margiolis Subject: git: 26203cca5262 - main - rc.d/mountd: Do not require /etc/exports List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: christos X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 26203cca52621c215f60640bf59128dcd9780be7 Auto-Submitted: auto-generated Date: Wed, 07 Oct 2026 16:53:38 +0000 Message-Id: <6ac67912.36723.7aa576f1@gitrepo.freebsd.org> The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=26203cca52621c215f60640bf59128dcd9780be7 commit 26203cca52621c215f60640bf59128dcd9780be7 Author: Christos Margiolis AuthorDate: 2026-10-07 16:53:28 +0000 Commit: Christos Margiolis CommitDate: 2026-10-07 16:53:28 +0000 rc.d/mountd: Do not require /etc/exports mountd exits if it cannot read any exports files. Requiring /etc/exports, however, unconditionally stops mountd from starting on a server that exports ZFS datasets only (/etc/zfs/exports). Let sbin/mountd handle requirements itself, instead of hardcoding /etc/exports, which is also wrong, because different files can be specified in mountd_flags. This patch also works with nfsv4_server_enable="YES", by preserving the behavior of failing to start if there is no "V4:" line in the exports file, which is missing by default on ZFS-only exports. MFC after: 1 week Sponsored by: The FreeBSD Foundation Reviewed by: rmacklem, markj, emaste Differential Revision: https://reviews.freebsd.org/D60044 --- libexec/rc/rc.d/mountd | 1 - 1 file changed, 1 deletion(-) diff --git a/libexec/rc/rc.d/mountd b/libexec/rc/rc.d/mountd index dfd2431f9c35..08416d32876a 100755 --- a/libexec/rc/rc.d/mountd +++ b/libexec/rc/rc.d/mountd @@ -13,7 +13,6 @@ desc="Service remote NFS mount requests" rcvar="mountd_enable" command="/usr/sbin/${name}" pidfile="/var/run/${name}.pid" -required_files="/etc/exports" start_precmd="mountd_precmd" extra_commands="reload"