freebsd-nq/lib
Suman Chakravartula e18be9a637 Add overlay(-O) mount option support
Linux supports mounting over non-empty directories by default.
In Solaris this is not the case and -O option is required for
zfs mount to mount a zfs filesystem over a non-empty directory.

For compatibility, I've added support for -O option to mount
zfs filesystems over non-empty directories if the user wants
to, just like in Solaris.

I've defined MS_OVERLAY to record it in the flags variable if
the -O option is supplied.  The flags variable passes through
a few functions and its checked before performing the empty
directory check in zfs_mount function.  If -O is given, the
check is not performed.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #473
2012-01-12 15:49:38 -08:00
..
libavl Linux 3.1 compat, super_block->s_shrink 2012-01-11 11:46:02 -08:00
libefi Treat /dev/vd* as whole disks 2012-01-11 16:44:54 -08:00
libnvpair Linux 3.1 compat, super_block->s_shrink 2012-01-11 11:46:02 -08:00
libshare Linux 3.1 compat, super_block->s_shrink 2012-01-11 11:46:02 -08:00
libspl Add overlay(-O) mount option support 2012-01-12 15:49:38 -08:00
libunicode Linux 3.1 compat, super_block->s_shrink 2012-01-11 11:46:02 -08:00
libuutil Linux 3.1 compat, super_block->s_shrink 2012-01-11 11:46:02 -08:00
libzfs Add overlay(-O) mount option support 2012-01-12 15:49:38 -08:00
libzpool Linux 3.1 compat, super_block->s_shrink 2012-01-11 11:46:02 -08:00
Makefile.am Implemented sharing datasets via NFS using libshare. 2011-07-06 09:20:28 -07:00
Makefile.in Linux 3.1 compat, super_block->s_shrink 2012-01-11 11:46:02 -08:00