freebsd-dev/sys/cddl/contrib/opensolaris/common
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
..
acl Resurrect the ZFS "aclmode" property 2011-07-18 07:16:44 +00:00
atomic In atomic_or_8_nv() load 1 and not 8 bytes from the address 2014-01-06 05:00:58 +00:00
avl Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
nvpair MFV r247580: 2013-03-19 12:51:18 +00:00
unicode Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
zfs Add property and sysctl to control how ZVOLs are exposed to OS. 2014-04-05 13:01:44 +00:00