1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-28 11:57:28 +00:00
freebsd/cddl
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
..
compat/opensolaris
contrib Add property and sysctl to control how ZVOLs are exposed to OS. 2014-04-05 13:01:44 +00:00
lib mark that libctf depends upon libz so that if you dlopen libctf, you 2014-03-05 23:37:25 +00:00
sbin
usr.bin zinject must use ioctl(2) compatibility wrapper 2014-01-16 12:21:21 +00:00
usr.sbin Convert the lockstat(1) man page to mdoc and make sure that it gets 2013-10-27 16:01:11 +00:00
Makefile
Makefile.inc