From nobody Fri Mar 08 18:44:53 2024 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 4Trw860zmsz5Dctm; Fri, 8 Mar 2024 18:44:54 +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 4Trw855q8Gz51KP; Fri, 8 Mar 2024 18:44:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709923493; 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=6iMELBahz4DdyUs8AaCXYcFmTyan237JQBIrTBQKqbs=; b=bQ1Tv/ZHN9980vh09whdEzlpjVe+a06LjLhCZGc3MvfpsJ3dK4KpHa6N26E2Mn35jhNKdI qJVCjGCA7Sz19exrGbNZjXxb0q3YkusvV2CEr7wIgeNpm1zaEmaOsQLa3+NOodyCvpUmZ2 6DnHT8VSd0XmHofTFRzH6aA/+XH09QRdyI8K+tmLerwPO67PDwx6nuFsmWnim/Sagwyr3A VNDtnPzkRQSvZVo6ZkBIRymbbY03byzZlYBmkLubti/zBcheLeDj+mZd41+bUdRlA+CpaT gMq8apwaagyS+SjEIxwKoUWcIWYa/fNyqUXI2x9FzttReRmBLzSe/U7yRfukOg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709923493; a=rsa-sha256; cv=none; b=VxG4PPxMxhj0XQA4JXLUHOIO5LutZpFsUoRdEWPt+MfkAfa2KOFsISgHbgow8DeAID7wjs OxIrFUSZCwFjUStmEWF425uQZUgtwCXAa5Lk9jFuoHFENhc2Ulu4NAGFII4mWTkQ4S9Ce1 9aOTbWPoHE5k3TDjFZi2Y6kiAKISseqFn3GO2SJAQ2LReztFrYwaXXuAHHakDIrYrBT+4k 3lQqk+Gsm/W0maB5wzDxTRivnqFQEPunr9gB9VkriCsVj6lMFQwIfCltA3fHBGlu914b4L BAluHGbHBw9rqYcyBM6+RT/zjUNOAtp9dFYDCAh72dWeWOPnLpzjTlDyGAODwg== 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=1709923493; 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=6iMELBahz4DdyUs8AaCXYcFmTyan237JQBIrTBQKqbs=; b=qsaF44C6N1aeENqlDqHshD+fAw8lVIwmswrx4pEi0/CQ1SKiEdnCPVD2uwk0c09IFwIIcB yPoupcJCE3bfT4Afd40jwlhYlJ2hkzBB00PmJ05RCBGaYRXNxz8wlT3y5PyvlECeZEvFSy fzsAv44Rf0G1LqWhxzA9ZHRuYjS4nPAVPMsZDeaTFAotwbWmpfLFDTayXmUd0Cg3kEuD9y lazJ+0HBsj6x6sjLZrbp4h1vBnOAkxtI2Emi3EW4wY9Lppqp0i4haOCgewfDs5YnvZO3rn b0y7sUCsqYLVedIUBxoOe3AJWGT2pNt2bx+UxTzO0mDgj8+/G2AG6w+kBMyKsw== 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 4Trw855Rl8zVg3; Fri, 8 Mar 2024 18:44:53 +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 428IirZF025260; Fri, 8 Mar 2024 18:44:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 428Iircl025257; Fri, 8 Mar 2024 18:44:53 GMT (envelope-from git) Date: Fri, 8 Mar 2024 18:44:53 GMT Message-Id: <202403081844.428Iircl025257@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: 4a2a69c4472c - main - mount_nullfs(8): document -o cache and vfs.nullfs.cache_vnodes 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: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4a2a69c4472cf677f8dfc026fff3dd33c83580cb Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=4a2a69c4472cf677f8dfc026fff3dd33c83580cb commit 4a2a69c4472cf677f8dfc026fff3dd33c83580cb Author: Konstantin Belousov AuthorDate: 2024-03-08 18:26:48 +0000 Commit: Konstantin Belousov CommitDate: 2024-03-08 18:44:21 +0000 mount_nullfs(8): document -o cache and vfs.nullfs.cache_vnodes Sponsored by: The FreeBSD Foundation MFC after: 1 week --- sbin/mount_nullfs/mount_nullfs.8 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sbin/mount_nullfs/mount_nullfs.8 b/sbin/mount_nullfs/mount_nullfs.8 index 940cb1650a31..da7eb8f3d58b 100644 --- a/sbin/mount_nullfs/mount_nullfs.8 +++ b/sbin/mount_nullfs/mount_nullfs.8 @@ -30,7 +30,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd June 11, 2023 +.Dd March 24, 2024 .Dt MOUNT_NULLFS 8 .Os .Sh NAME @@ -90,15 +90,21 @@ See the .Xr mount 8 man page for possible options and their meanings. Additionally the following option is supported: -.Bl -tag -width indent +.Bl -tag -width nocache .It Cm nocache Disable metadata caching in the null layer. Some lower-layer file systems may force this option. Depending on the access pattern, this may result in increased lock contention. +.It Cm cache +Force enable metadate caching. .El .El .Pp +The +.Dv vfs.nullfs.cache_vnodes +sysctl specifies global default for mount-specific cache/nocache option. +.Pp The null layer has two purposes. First, it serves as a demonstration of layering by providing a layer which does nothing.