freebsd-skq/sys/fs/nullfs
Jilles Tjoelker 6d6a91c50f nullfs: Improve f_flags in statfs().
Include some flags of the nullfs mount itself:
MNT_RDONLY, MNT_NOEXEC, MNT_NOSUID, MNT_UNION, MNT_NOSYMFOLLOW.

This allows userland code calling statfs() or fstatfs() to see these flags.
In particular, this allows opendir() to detect that a -t nullfs -o union
mount needs deduplication (otherwise at least . and .. are returned twice)
and allows rtld to detect a -t nullfs -o noexec mount as noexec.

Turn off the MNT_ROOTFS flag from the underlying filesystem because the
nullfs mount is definitely not the root filesystem.

Reviewed by:	kib
MFC after:	1 week
2013-03-02 12:42:23 +00:00
..
null_subr.c The current default size of the nullfs hash table used to lookup the 2013-01-14 05:44:47 +00:00
null_vfsops.c nullfs: Improve f_flags in statfs(). 2013-03-02 12:42:23 +00:00
null_vnops.c When nullfs mount is forcibly unmounted and nullfs vnode is reclaimed, 2013-01-10 18:24:48 +00:00
null.h