From nobody Fri Mar 08 22:02:27 2024 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 4Ts0XP5QcBz5DvN7 for ; Fri, 8 Mar 2024 22:02:45 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic314-20.consmr.mail.gq1.yahoo.com (sonic314-20.consmr.mail.gq1.yahoo.com [98.137.69.83]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ts0XN0FXGz46XT for ; Fri, 8 Mar 2024 22:02:43 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=Kuoimw8a; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.69.83 as permitted sender) smtp.mailfrom=marklmi@yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1709935361; bh=o3MeRAkWWr7gkWZp+E7ABy0X0tPlWSjJPwJk8+QM3sQ=; h=From:Subject:Date:To:References:From:Subject:Reply-To; b=Kuoimw8a9lqUy4Dprv0QUAsjEAVNJgjDAOz/t6eoo/L/atxT8p/2CDKHnMFC9VGSatBoVoqaZE4u4FMWK/CE8cV0XfQURJHCTn3oS9cWmHguJC08tXoh05AsjiXkpghviUQ/COzuFVhSRMhDSai4uqVY0Adbp4d5wdfR3/8QXlTj20yEqML2WFJObNb3VOD00znjeMBdMFhiB3/tjmTquWtBKlf/2Ff43rwulXrNSuMjCgiqpGMhIyCYvIdpd+mQvaFhP2X3ayV6jf7cwtFhnGQPLXahBqlsZx+96zOa7RKMj8kleUrO42Os6y3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qt1QBoxq_DqhaZJzsBKilr_CWCtX24nCYRJg19DPmv2_dBAXLkoG.a_fPIjXiwS6 dY6_bnx25nycHcjOH._1alOQmJjOlKcB2bn9UOfRhXfx86uM1VeU7wFRzeJf8HDXNAcyJoGOqjgH Hi.YSoE2CpaT.CptmTHPIpSFVCIbxaPFSufTi0c42ejOHRdxvtjbtY6NXRNNy9BEY7vK_SFqnJDU 8jNxgb8EH0RsPn4wg_X33UNQaChEIKomUo38csxIVI9w64Or6bNhk.jkXERu1qVaYch4KAFuIvkr LDiJ7y0ZOou_5BlkH0s6K4NeSgPovnCH2JBOgu_Ryhk.1BIUUGx5luI9AajfvnfTV_Vh12I3sFcy HFgc4kJI5dqRvtvw1ScjV0uZYXza2pEt2vo49OkoZ9mguO8G39UY62G05rMHC0beFnPejHDD3JH4 .70umvhDseq3ers1_vIFNSsyNWGEb_lnoEj9OQK7dDxl0Hm8o7WbAM5gG.QW6JnVTlAmACMjbmNl ZGS86s_wimzzy_o0JayHfxTdGLIOYq5GUWmhWDpZhflGEKFYrFIyHJaOjq99d.SyzP8Vq0VLFNQv mQwPY2esOY4IXAxjE2LHlZJcGmUBxJNWxTxs2cEyAZIJsa0vEleBVy7BJahnB0T8ZWpzuX_Yn_Zq ooeSzoyKT_Xy6RTh_1RObNo6BZGMLvycD6qVi4KYnUOyACcrUZcoN8CoHOmaQTJpxw262bGG4YAb FMknBFRn1LHkHs3HH3u72fm272UUc6CxypA-- X-Sonic-MF: X-Sonic-ID: c298563d-3f5f-488a-942e-98907f2c5e42 Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.gq1.yahoo.com with HTTP; Fri, 8 Mar 2024 22:02:41 +0000 Received: by hermes--production-gq1-5c57879fdf-7xbd4 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 4bd4e555cfdc1d9df2131d8839a777f9; Fri, 08 Mar 2024 22:02:38 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.400.31\)) Subject: Re: git: 8921216dbee6 - main - nullfs: add -o cache ["mount" not reporting cache vs. nocache status for listed mounts?] Message-Id: Date: Fri, 8 Mar 2024 14:02:27 -0800 To: Konstantin Belousov , dev-commits-src-main@freebsd.org X-Mailer: Apple Mail (2.3774.400.31) References: X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; DKIM_TRACE(0.00)[yahoo.com:+]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.83:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[dev-commits-src-main@freebsd.org]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.69.83:from]; APPLE_MAILER_COMMON(0.00)[]; SUBJECT_HAS_QUESTION(0.00)[] X-Rspamd-Queue-Id: 4Ts0XN0FXGz46XT [I'm picking one cache vs. nocache related message to use to ask my question.] Konstantin Belousov wrote on Date: Fri, 08 Mar 2024 18:44:52 UTC : > The branch main has been updated by kib: >=20 >> URL: = https://cgit.FreeBSD.org/src/commit/?id=3D8921216dbee6884532e22d5347cff4d9= ed23e782 >=20 > commit 8921216dbee6884532e22d5347cff4d9ed23e782 > Author: Konstantin Belousov > AuthorDate: 2024-03-08 18:26:02 +0000 > Commit: Konstantin Belousov > CommitDate: 2024-03-08 18:44:21 +0000 >=20 > nullfs: add -o cache >=20 > to allow overwrite global default if needed. >=20 > Sponsored by: The FreeBSD Foundation > MFC after: 1 week > --- > sys/fs/nullfs/null_vfsops.c | 15 +++++++++------ > 1 file changed, 9 insertions(+), 6 deletions(-) >=20 > diff --git a/sys/fs/nullfs/null_vfsops.c b/sys/fs/nullfs/null_vfsops.c > index 7ee6ce53fbde..63bdcd4788d9 100644 > --- a/sys/fs/nullfs/null_vfsops.c > +++ b/sys/fs/nullfs/null_vfsops.c > @@ -205,12 +205,15 @@ nullfs_mount(struct mount *mp) > MNT_IUNLOCK(mp); > } >=20 > - xmp->nullm_flags |=3D NULLM_CACHE; > - if (!null_cache_vnodes || > - vfs_getopt(mp->mnt_optnew, "nocache", NULL, NULL) =3D=3D 0 || > - (xmp->nullm_vfs->mnt_kern_flag & MNTK_NULL_NOCACHE) !=3D 0) > - xmp->nullm_flags &=3D ~NULLM_CACHE; > - > + if (vfs_getopt(mp->mnt_optnew, "cache", NULL, NULL) =3D=3D 0) { > + xmp->nullm_flags |=3D NULLM_CACHE; > + } else if (vfs_getopt(mp->mnt_optnew, "nocache", NULL, NULL) =3D=3D = 0) { > + ; > + } else if (null_cache_vnodes && > + (xmp->nullm_vfs->mnt_kern_flag & MNTK_NULL_NOCACHE) =3D=3D 0) { > + xmp->nullm_flags |=3D NULLM_CACHE; > + } > +=20 > if ((xmp->nullm_flags & NULLM_CACHE) !=3D 0) { > vfs_register_for_notification(xmp->nullm_vfs, mp, > &xmp->notify_node); Does the mount command report the cache vs. no cache status of the = mounts that it lists? = https://lists.freebsd.org/archives/freebsd-current/2024-March/005690.html is is recent a report that it does not. A reply mentions that "ignore" = vs. not has a similar status of not being reported: = https://lists.freebsd.org/archives/freebsd-current/2024-March/005695.html =3D=3D=3D Mark Millard marklmi at yahoo.com