Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Dec 2024 06:26:16 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 57d12ea5c9b0 - stable/14 - nullfs: stop lying about mount flags in statfs(2)
Message-ID:  <202412270626.4BR6QGPW040075@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=57d12ea5c9b07a6407e3518aeb2383f29be727d2

commit 57d12ea5c9b07a6407e3518aeb2383f29be727d2
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-12-19 22:14:20 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-12-27 06:24:55 +0000

    nullfs: stop lying about mount flags in statfs(2)
    
    PR:     283425
    
    (cherry picked from commit 709989bab5d060763bb8fd8e75d33f8bd1d454ad)
---
 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 35d0f46d0ef7..8d980932623d 100644
--- a/sys/fs/nullfs/null_vfsops.c
+++ b/sys/fs/nullfs/null_vfsops.c
@@ -369,12 +369,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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202412270626.4BR6QGPW040075>