svn commit: r332613 - stable/11/sys/fs/nullfs

Edward Tomasz Napierala trasz at FreeBSD.org
Mon Apr 16 17:12:19 UTC 2018


Author: trasz
Date: Mon Apr 16 17:12:18 2018
New Revision: 332613
URL: https://svnweb.freebsd.org/changeset/base/332613

Log:
  MFC r327777:
  
  Make nullfs properly report MNT_AUTOMOUNTED set on the nullfs mount itself,
  instead of copying from the underlying filesystem.
  
  PR:		224851

Modified:
  stable/11/sys/fs/nullfs/null_vfsops.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/fs/nullfs/null_vfsops.c
==============================================================================
--- stable/11/sys/fs/nullfs/null_vfsops.c	Mon Apr 16 17:08:58 2018	(r332612)
+++ stable/11/sys/fs/nullfs/null_vfsops.c	Mon Apr 16 17:12:18 2018	(r332613)
@@ -318,7 +318,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-all mailing list