Make nullfs properly report MNT_AUTOMOUNTED set on the nullfs mount itself,
instead of copying from the underlying filesystem. PR: 224851 Reported by: Jamie Landeg-Jones <jamie at dyslexicfish.net> Tested by: Jamie Landeg-Jones <jamie at dyslexicfish.net> MFC after: 2 weeks
This commit is contained in:
parent
5192bdb466
commit
b5d92d1ceb
@ -320,7 +320,8 @@ nullfs_statfs(mp, 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)) | (mstat->f_flags & ~MNT_ROOTFS);
|
||||
MNT_UNION | MNT_NOSYMFOLLOW | MNT_AUTOMOUNTED)) |
|
||||
(mstat->f_flags & ~(MNT_ROOTFS | MNT_AUTOMOUNTED));
|
||||
sbp->f_bsize = mstat->f_bsize;
|
||||
sbp->f_iosize = mstat->f_iosize;
|
||||
sbp->f_blocks = mstat->f_blocks;
|
||||
|
Loading…
x
Reference in New Issue
Block a user