From nobody Fri Dec 20 16:11:31 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 4YFC8g4ZT2z5Ww73; Fri, 20 Dec 2024 16:11:31 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YFC8g3fJYz41d4; Fri, 20 Dec 2024 16:11:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734711091; 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=b8Dn6N/jNVmqqEM18qu53aTWzvlwHXNsSncqGmcOk9U=; b=DVt/g3PAS60ghAtO8CDhhsU7pemdzH1d3W6RBJ5BC+ExjKMqMDr2rVatv1bCR4Oko3DHjq GWIHWWcYosauvObsE36gNhoXr+C6E7NkVj3GMFcn37XOgB/LfolpYZ73/H/o7Xbudwg3BJ 1jU+ZDOKOgBRWvux++CHzQ/0Kcz0kCwp7yIMBh0zVO+nlueDQzZ0V62GIb0sbQpOl3AuaB IZQzwgl1s9pcGEjL5H9KD4VexzeO3/l0H11sHDO+fSE6i1ZfPGIQv4jS2ubaeesQcJHCU0 hwMFBPLU2UW0bP9BtYnzPkkwBCG9OohZTwCJ5NvkofUmVNLPhB8gwrnoGS7SCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734711091; 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=b8Dn6N/jNVmqqEM18qu53aTWzvlwHXNsSncqGmcOk9U=; b=Ci9SETqbs2yjCYdVaJ/PNtjgWzoD40orhEOikXKBWTvPO5vGTjGGvPVpNFQJdNPxJnkG9Q fnSEuWtUiwLTJ2msh59ixYkeGccgp5V5qxNINxlcLfkE5rAHSBrdRDQWFv6chRi3L/Rf7/ ioTpcgzZbY8cG5QDwS2DZRMoxX1voY5u4bYL0mE3ccLpVmvL1wtlmgIu66E+GQC8yMrRKO qB1EYDlXpBQE8WAT4JWCQcKEq0MGJ2GU7KZXbMZP6xbIo6DKBxjCDVjA0amIZT8HAT7yiK L8hsCINoWnrRBwORBvpa2qlxCrSOcpXp540324wqqN9NUL1ejmpWS5yE0otwfw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734711091; a=rsa-sha256; cv=none; b=o4Lj8lTTg/ByMGnyNTRM0GXpQSJfpQu3dPLOgBuwHwUVUt7VhBBPwwuyVT26z81ZPgYi3c 0Do1M39WJLP/6cnKZZLOzV2ujcgIC/Rs3KHSrUBrgh3OThoNkcvzu4Y+VfglHf+R9Geoa0 B0P01OW7dKvNnjrOI0eblM7307gXpgOrSG0Ys7dEILfRXqRTAPfa5BUJ3WmVDXwqlY6Uku J/+ORGGI9yPqbVJnzIDdUsUUFrrd0d9wZFGGq1O858gZ0v7mDgwvewAKl7ePiuVNeCGg0X jS+kju4WZt4MQHdp/TQeLIKGeQQrfnaKAF+/RKWkG59W7zLhjzjfrxGGmf58mg== 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 4YFC8g3G92zljP; Fri, 20 Dec 2024 16:11:31 +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 4BKGBVq8078410; Fri, 20 Dec 2024 16:11:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BKGBVZd078407; Fri, 20 Dec 2024 16:11:31 GMT (envelope-from git) Date: Fri, 20 Dec 2024 16:11:31 GMT Message-Id: <202412201611.4BKGBVZd078407@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: 709989bab5d0 - main - nullfs: stop lying about mount flags in statfs(2) 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: 709989bab5d060763bb8fd8e75d33f8bd1d454ad Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=709989bab5d060763bb8fd8e75d33f8bd1d454ad commit 709989bab5d060763bb8fd8e75d33f8bd1d454ad Author: Konstantin Belousov AuthorDate: 2024-12-19 22:14:20 +0000 Commit: Konstantin Belousov CommitDate: 2024-12-20 15:58:29 +0000 nullfs: stop lying about mount flags in statfs(2) Flags should not propagate from the lower fs. Behavior for the upper fs is determined by flags from its mount point structure. When lower fs acts according to its mount configuration, it is reported up as VOP errors. PR: 283425 Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D48150 --- sys/fs/nullfs/null_vfsops.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sys/fs/nullfs/null_vfsops.c b/sys/fs/nullfs/null_vfsops.c index 7ab1fb6c1a25..4cddf24a5745 100644 --- a/sys/fs/nullfs/null_vfsops.c +++ b/sys/fs/nullfs/null_vfsops.c @@ -365,12 +365,7 @@ nullfs_statfs(struct mount *mp, struct statfs *sbp) return (error); } - /* now copy across the "interesting" information and fake the rest */ sbp->f_type = mstat->f_type; - sbp->f_flags &= MNT_RDONLY | MNT_NOEXEC | MNT_NOSUID | MNT_UNION | - MNT_NOSYMFOLLOW | MNT_AUTOMOUNTED | MNT_EXPORTED | MNT_IGNORE; - mstat->f_flags &= ~(MNT_ROOTFS | MNT_AUTOMOUNTED | MNT_EXPORTED); - sbp->f_flags |= mstat->f_flags; sbp->f_bsize = mstat->f_bsize; sbp->f_iosize = mstat->f_iosize; sbp->f_blocks = mstat->f_blocks;