svn commit: r327777 - head/sys/fs/nullfs

Edward Tomasz Napierala trasz at FreeBSD.org
Wed Jan 10 17:51:03 UTC 2018


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;


More information about the svn-src-head mailing list