freebsd-src/cddl/contrib/opensolaris/cmd
Alexander Motin 537650f54d Add property and sysctl to control how ZVOLs are exposed to OS.
New ZFS property volmode and sysctl vfs.zfs.vol.mode allow switching ZVOL
between three modes:
 geom -- existing fully functional behavior (default);
 dev -- exposing volumes only as raw disk device file in devfs;
 none -- not exposing volumes outside ZFS.

The "dev" mode is less functional (can't be partitioned, mounted, etc),
but it is faster, and in some scenarios with untrusted consumers safer.
It can be useful for NAS, VM block storages, etc.
The "none" mode may be convenient for backup servers, etc. that don't
need direct data access.

Due to the way ZVOL is integrated with main ZFS code, those property
and sysctl are checked only during pool import and volume creation.

MFC after:	1 month
Sponsored by:	iXsystems, Inc.
2014-04-05 13:01:44 +00:00
..
dtrace 4478 dtrace_dof_maxsize is far too small 2014-02-28 02:04:41 +00:00
lockstat If the initial attempt to open /dev/ksyms fails, kldload the ksyms module 2013-10-27 16:18:48 +00:00
mdb/tools/common Apply FreeBSD changes. 2008-04-26 03:47:34 +00:00
plockstat Use 'int' to store the return value of getopt(), rather than char. 2013-11-20 01:42:29 +00:00
pyzfs Merge ZFS version 15 and almost all OpenSolaris bugfixes referenced 2010-07-12 23:49:04 +00:00
sgs Apply FreeBSD changes. 2008-04-26 03:47:34 +00:00
stat/common Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
zdb MFV 263436-263438: 2014-03-21 01:32:25 +00:00
zfs Add property and sysctl to control how ZVOLs are exposed to OS. 2014-04-05 13:01:44 +00:00
zhack MFV r259170: 2014-01-01 00:45:28 +00:00
zinject zinject must use ioctl(2) compatibility wrapper 2014-01-16 12:21:21 +00:00
zlook Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
zpool MFV r263887: 2014-03-28 23:12:00 +00:00
zstreamdump MFV r258972: 2013-12-31 21:37:24 +00:00
ztest MFV r258371,r258372: 4101 metaslab_debug should allow for fine-grained control 2013-11-28 19:37:22 +00:00