mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04: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 2b258dd17caf329bc549f93d9858b74109a479d7)
This commit is contained in:
parent
a1e55af8d1
commit
0ee0770faf
1 changed files with 4 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue