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
806695ffe4
commit
ed5cdcb6c3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=327777
@ -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…
Reference in New Issue
Block a user