From nobody Thu Oct 9 23:02:21 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 4cjQPT3JTqz6CHM0; Thu, 09 Oct 2025 23:02:21 +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 4cjQPT2K6Xz3t61; Thu, 09 Oct 2025 23:02:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760050941; 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=GxeZPl+0QaqGTyfWVYtcJXVnkwdbS/izu5NITciNL2U=; b=kB1fLda/Ic9CFZMVG6pEpDr6/cCWlpkXpMCrBxez/DWUVWfq+OueYiKL5LrojDa+EbjDAy sYoxUNv5JPWLZe4XtXJfUKxEyZ64BrjJuk11Y6TeIj+g2IRP3i/6E4hXL5qF2uKTJ8iEZY PPMkngOOAfm2pdERkoez8Tx28vJg5fBcBYPdRQiaGTTSkfRHBMDsy1OZFKX8fS3cLeWZdm eB+t8Kusvbd+glstFVhELcVjsox63biNhcbwZrCYhSskhH5nsO7DUduqN/YgmV6N56+Kqf P4Nfj0do8R9LUt4CzY4rdANJk8cGaZGqOvUzkM/wnRvulgLJYjE5JD+34+CRtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760050941; 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=GxeZPl+0QaqGTyfWVYtcJXVnkwdbS/izu5NITciNL2U=; b=MGJJj2tFVJAD1BJA6bpN5icGiehEW/N67o7UU6NIFTkzYt4pECkkYsdnGDv4gljNF4izqx b1kAAaH2YTVIuddRdmUg0vG+ONniEKiacPdJ63tzca2Con9Fuug5PnvnFqDMBOfATc9FpZ PoFac1ggM6XAHj77gC5UtBhlSPhDE6r+eDMUKQEb7J0Lh7OVbYkAYGMwcTHbROsWMZtR0a XapGRi4OUOeTChMc4J1DgqyAdO3jbnUtoF8HanTjXxkMBH79pq9egt2PZMkRaYTyVlT9p5 fiOiKAOyMbe5BEvETlPKCL3diIY+p0rHNX3oVuhwNBZTdcPeRJkgIF7/FhQ9zg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760050941; a=rsa-sha256; cv=none; b=i/mR72urvhZFMOQ0zDQ3zXtprFicKyYFXlXdCd3mRL3NGS6cS5Wf4o3qs9CASEeZvPlyrL xWR7IbBPuv5HlXOOL+Y35Gc8qw7cQMD86ev0MyWtd4mRMeZ/YbLabweOv8eMB6kYVxlugL Nilwlwjvz4jEcDPotdoed+WNh5YXebqjUw+s6M/ABXLQK88KebXAP8JuNIvUWvfXQpCEy9 7PNMAzqxsk4ImVlk5UT4UkG9QI8pcSyPzDlE6UNRCMnkzAvwYY3E4rB+4To6XWyCpTZdlR KZ4qAQhdW8QUtnKq+/M1RU5XZr1WelcFTxe5EbdOk4+B6H51A7T6a7O0+D0Mfg== 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 4cjQPT1sVGzdrK; Thu, 09 Oct 2025 23:02:21 +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 599N2LSK056363; Thu, 9 Oct 2025 23:02:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 599N2LZ9056360; Thu, 9 Oct 2025 23:02:21 GMT (envelope-from git) Date: Thu, 9 Oct 2025 23:02:21 GMT Message-Id: <202510092302.599N2LZ9056360@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 033587a985a4 - main - mount_nullfs.8: document unixbypass and nounixbypass 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: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 033587a985a46e9d45fc3fb48a78754d81f0d50d Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=033587a985a46e9d45fc3fb48a78754d81f0d50d commit 033587a985a46e9d45fc3fb48a78754d81f0d50d Author: Konstantin Belousov AuthorDate: 2025-10-09 20:55:01 +0000 Commit: Konstantin Belousov CommitDate: 2025-10-09 22:48:01 +0000 mount_nullfs.8: document unixbypass and nounixbypass Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D52983 --- sbin/mount_nullfs/mount_nullfs.8 | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/sbin/mount_nullfs/mount_nullfs.8 b/sbin/mount_nullfs/mount_nullfs.8 index 17b1f45f5e42..b3cf57fd9dea 100644 --- a/sbin/mount_nullfs/mount_nullfs.8 +++ b/sbin/mount_nullfs/mount_nullfs.8 @@ -90,7 +90,7 @@ See the .Xr mount 8 man page for possible options and their meanings. Additionally the following option is supported: -.Bl -tag -width nocache +.Bl -tag -width nounixbypass .It Cm nocache Disable metadata caching in the null layer. Some lower-layer file systems may force this option. @@ -98,6 +98,32 @@ Depending on the access pattern, this may result in increased lock contention. .It Cm cache Force enable metadata caching. +.It Cm nounixbypass +Disable bypassing +.Xr unix 4 +socket files used for +.Xr bind 2 +and +.Xr connect 2 , +to the lower (mounted-from) filesystem layer. +.Pp +The effect is that lower and upper (bypassed) unix sockets +are separate. +.It Cm unixbypass +Enable the bypass of unix socket file to lower filesystem layer. +This is default. +.Pp +The effect is that +.Xr bind 2 +and +.Xr connect 2 +operations on a unix socket done from either the upper (nullfs) or lower +layer path are performed on same unix socket. +For instance, if a server +.Xr bind 2 +is done on a socket in the lower layer, then +.Xr connect 2 +on the socket file accessed via the nullfs mount, connects to the server. .El .El .Pp