Author: trasz
Date: Wed Jan 10 17:51:02 2018
New Revision: 327777
URL: https://svnweb.freebsd.org/changeset/base/327777

Log:
  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

Modified:
  head/sys/fs/nullfs/null_vfsops.c

Modified: head/sys/fs/nullfs/null_vfsops.c
==============================================================================
--- head/sys/fs/nullfs/null_vfsops.c    Wed Jan 10 17:36:43 2018        
(r327776)
+++ head/sys/fs/nullfs/null_vfsops.c    Wed Jan 10 17:51:02 2018        
(r327777)
@@ -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;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to