freebsd-skq/cddl
mav 44963562b0 MFC r264145:
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.
2014-05-08 13:12:24 +00:00
..
compat/opensolaris Fix an obvious typo. 2012-07-04 17:36:26 +00:00
contrib MFC r264145: 2014-05-08 13:12:24 +00:00
lib MFC r262542: 2014-05-03 16:08:52 +00:00
sbin MFC r264741: Add placeholder Kyuafiles for various top-level hierarchies. 2014-04-28 04:20:14 +00:00
tests MFC r264741: Add placeholder Kyuafiles for various top-level hierarchies. 2014-04-28 04:20:14 +00:00
usr.bin MFC r264741: Add placeholder Kyuafiles for various top-level hierarchies. 2014-04-28 04:20:14 +00:00
usr.sbin MFC r264741: Add placeholder Kyuafiles for various top-level hierarchies. 2014-04-28 04:20:14 +00:00
Makefile MFC r264741: Add placeholder Kyuafiles for various top-level hierarchies. 2014-04-28 04:20:14 +00:00
Makefile.inc Do not lint code beyond necessity (with apologies to Wiliam of Ockham). 2010-11-18 16:32:52 +00:00