* Implement the ability to export NULLFS mounts via NFS.
authorMatthew Dillon <dillon@dragonflybsd.org>
Wed, 17 Sep 2008 21:44:25 +0000 (21:44 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Wed, 17 Sep 2008 21:44:25 +0000 (21:44 +0000)
commit67863d0455efd86aaa48fea3c0fb0325ad049f18
treecd90d658f5cd91af2847a2de5d0628ee28370073
parente1c548c299cc59f1912c2fc6b91648a7cc3ebcb8
* Implement the ability to export NULLFS mounts via NFS.

* Enforce PFS isolation when exporting a HAMMER PFS via a NULLFS mount.

NOTE: Exporting anything other then HAMMER PFS root's via nullfs does
NOT protect the parent of the exported directory from being accessed via NFS.

Generally speaking this feature is implemented by giving each nullfs mount
a synthesized fsid based on what is being mounted and implementing the
NFS export infrastructure in the nullfs code instead of just bypassing those
functions to the underyling VFS.
28 files changed:
sys/emulation/dragonfly12/dfbsd12_stat.c
sys/kern/kern_checkpoint.c
sys/kern/vfs_default.c
sys/kern/vfs_mount.c
sys/kern/vfs_subr.c
sys/kern/vfs_syscalls.c
sys/sys/mount.h
sys/sys/vnode.h
sys/vfs/gnu/ext2fs/ext2_vfsops.c
sys/vfs/hammer/hammer_inode.c
sys/vfs/hammer/hammer_mount.h
sys/vfs/hammer/hammer_vfsops.c
sys/vfs/hpfs/hpfs_vfsops.c
sys/vfs/isofs/cd9660/cd9660_vfsops.c
sys/vfs/msdosfs/msdosfs_vfsops.c
sys/vfs/nfs/nfs.h
sys/vfs/nfs/nfs_serv.c
sys/vfs/nfs/nfs_subs.c
sys/vfs/nfs/nfsm_subs.h
sys/vfs/ntfs/ntfs_vfsops.c
sys/vfs/nullfs/null.h
sys/vfs/nullfs/null_vfsops.c
sys/vfs/nullfs/null_vnops.c
sys/vfs/udf/udf_vfsops.c
sys/vfs/ufs/ffs_extern.h
sys/vfs/ufs/ffs_vfsops.c
sys/vfs/ufs/ufs_extern.h
sys/vfs/ufs/ufs_vfsops.c