mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
nullfs: Show correct exported flag.
MFC after: 3 days
Reviewed by: allanjude, kib
Differential Revision: https://reviews.freebsd.org/D44773
(cherry picked from commit 2b258dd17c
)
This commit is contained in:
parent
1d06b45463
commit
82c8a5f4f1
1 changed files with 4 additions and 3 deletions
|
@ -336,9 +336,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;
|
||||
|
|
Loading…
Reference in a new issue