The branch stable/14 has been updated by des:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=0ee0770fafc3d3b240c699439f4a9fd7eeb8d481

commit 0ee0770fafc3d3b240c699439f4a9fd7eeb8d481
Author:     Dag-Erling Smørgrav <d...@freebsd.org>
AuthorDate: 2024-04-13 15:20:49 +0000
Commit:     Dag-Erling Smørgrav <d...@freebsd.org>
CommitDate: 2024-04-22 13:48:15 +0000

    nullfs: Show correct exported flag.
    
    MFC after:      3 days
    Reviewed by:    allanjude, kib
    Differential Revision:  https://reviews.freebsd.org/D44773
    
    (cherry picked from commit 2b258dd17caf329bc549f93d9858b74109a479d7)
---
 sys/fs/nullfs/null_vfsops.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/sys/fs/nullfs/null_vfsops.c b/sys/fs/nullfs/null_vfsops.c
index 5114fa0b50ae..35d0f46d0ef7 100644
--- a/sys/fs/nullfs/null_vfsops.c
+++ b/sys/fs/nullfs/null_vfsops.c
@@ -371,9 +371,10 @@ nullfs_statfs(struct mount *mp, struct statfs *sbp)
 
        /* now copy across the "interesting" information and fake the rest */
        sbp->f_type = mstat->f_type;
-       sbp->f_flags = (sbp->f_flags & (MNT_RDONLY | MNT_NOEXEC | MNT_NOSUID |
-           MNT_UNION | MNT_NOSYMFOLLOW | MNT_AUTOMOUNTED | MNT_IGNORE)) |
-           (mstat->f_flags & ~(MNT_ROOTFS | MNT_AUTOMOUNTED));
+       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;

Reply via email to