freebsd-dev/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
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
..
sys MFV r260155: 2014-01-02 08:10:35 +00:00
arc.c Rename global cnt to vm_cnt to avoid shadowing. 2014-03-22 10:26:09 +00:00
bplist.c MFV r247580: 2013-03-19 12:51:18 +00:00
bpobj.c MFV r258374: 2013-12-24 07:14:25 +00:00
bptree.c MFV r260155: 2014-01-02 08:10:35 +00:00
dbuf.c MFV r259170: 2014-01-01 00:45:28 +00:00
ddt_zap.c The current ZFS code expects ddt_zap_count to always succeed by asserting 2013-01-10 19:26:56 +00:00
ddt.c MFV r259170: 2014-01-01 00:45:28 +00:00
dmu_diff.c MFV r260154 + 260182: 2014-01-02 07:34:36 +00:00
dmu_object.c MFV r258374: 2013-12-24 07:14:25 +00:00
dmu_objset.c MFV r255255: 4045 zfs write throttle & i/o scheduler performance work 2013-11-26 09:57:14 +00:00
dmu_send.c MFV r260154 + 260182: 2014-01-02 07:34:36 +00:00
dmu_traverse.c traverse_visitbp: visit DMU_GROUPUSED_OBJECT before DMU_USERUSED_OBJECT 2014-01-17 10:23:46 +00:00
dmu_tx.c MFV r258923: 4188 assertion failed in dmu_tx_hold_free(): dn_datablkshift != 0 2013-12-18 21:45:46 +00:00
dmu_zfetch.c In dmu_zfetch_stream_reclaim() replace division with multiplication and 2014-01-03 18:44:37 +00:00
dmu.c MFV r259170: 2014-01-01 00:45:28 +00:00
dnode_sync.c MFV r259170: 2014-01-01 00:45:28 +00:00
dnode.c MFV r259170: 2014-01-01 00:45:28 +00:00
dsl_bookmark.c MFV r260154 + 260182: 2014-01-02 07:34:36 +00:00
dsl_dataset.c MFV r261619: 2014-02-08 05:35:36 +00:00
dsl_deadlist.c Merge recent vendor changes: 2012-08-28 12:25:37 +00:00
dsl_deleg.c MFV r248217: 2013-04-06 10:39:38 +00:00
dsl_destroy.c MFV r260154 + 260182: 2014-01-02 07:34:36 +00:00
dsl_dir.c MFV r258374: 2013-12-24 07:14:25 +00:00
dsl_pool.c MFV r258374: 2013-12-24 07:14:25 +00:00
dsl_prop.c MFV r251620: 2013-06-11 19:12:06 +00:00
dsl_scan.c MFV r260155: 2014-01-02 08:10:35 +00:00
dsl_synctask.c MFV r248217: 2013-04-06 10:39:38 +00:00
dsl_userhold.c Fix ZFS deadlock when sending a snapshot which is mounted. 2013-11-18 11:28:19 +00:00
gzip.c
lz4.c Introduce allocation cache to store LZ4 compression contexts without kicking 2013-11-14 15:54:54 +00:00
lzjb.c Improve lzjb decompress performance by reorganizing the code 2013-10-08 01:38:24 +00:00
metaslab.c MFV r258371,r258372: 4101 metaslab_debug should allow for fine-grained control 2013-11-28 19:37:22 +00:00
range_tree.c MFV r258371,r258372: 4101 metaslab_debug should allow for fine-grained control 2013-11-28 19:37:22 +00:00
refcount.c MFV r247580: 2013-03-19 12:51:18 +00:00
rrwlock.c MFV r247580: 2013-03-19 12:51:18 +00:00
sa.c MFV r251620: 2013-06-11 19:12:06 +00:00
sha256.c
spa_config.c Enhance the ZFS vdev layer to maintain both a logical and a physical 2013-08-21 04:10:24 +00:00
spa_errlog.c MFV r251621: 2013-06-11 19:16:14 +00:00
spa_history.c MFV r248217: 2013-04-06 10:39:38 +00:00
spa_misc.c MFV r260155: 2014-01-02 08:10:35 +00:00
spa.c All callers of static method load_nvlist() in spa.c handles error case, 2014-03-02 02:41:33 +00:00
space_map.c MFV r258374: 2013-12-24 07:14:25 +00:00
space_reftree.c MFV r258371,r258372: 4101 metaslab_debug should allow for fine-grained control 2013-11-28 19:37:22 +00:00
THIRDPARTYLICENSE.lz4 MFV r245512: 2013-02-09 06:39:28 +00:00
THIRDPARTYLICENSE.lz4.descrip MFV r245512: 2013-02-09 06:39:28 +00:00
trim_map.c Changed ZFS TRIM sysctl from vfs.zfs.trim_disable -> vfs.zfs.trim.enabled 2013-04-26 11:24:20 +00:00
txg.c MFV r255255: 4045 zfs write throttle & i/o scheduler performance work 2013-11-26 09:57:14 +00:00
uberblock.c MFV r248217: 2013-04-06 10:39:38 +00:00
unique.c
vdev_cache.c MFV r259170: 2014-01-01 00:45:28 +00:00
vdev_disk.c MFV r259170: 2014-01-01 00:45:28 +00:00
vdev_file.c Enhance the ZFS vdev layer to maintain both a logical and a physical 2013-08-21 04:10:24 +00:00
vdev_geom.c sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c 2013-12-12 00:27:22 +00:00
vdev_label.c MFV r260153: 2014-01-01 01:26:39 +00:00
vdev_mirror.c fix a bug in ZFS mirror code for handling multiple DVAa 2014-01-16 13:24:10 +00:00
vdev_missing.c Enhance the ZFS vdev layer to maintain both a logical and a physical 2013-08-21 04:10:24 +00:00
vdev_queue.c MFV r255255: 4045 zfs write throttle & i/o scheduler performance work 2013-11-26 09:57:14 +00:00
vdev_raidz.c MFV r255255: 4045 zfs write throttle & i/o scheduler performance work 2013-11-26 09:57:14 +00:00
vdev_root.c Enhance the ZFS vdev layer to maintain both a logical and a physical 2013-08-21 04:10:24 +00:00
vdev.c MFV r258371,r258372: 4101 metaslab_debug should allow for fine-grained control 2013-11-28 19:37:22 +00:00
zap_leaf.c MFV r248217: 2013-04-06 10:39:38 +00:00
zap_micro.c MFV r258374: 2013-12-24 07:14:25 +00:00
zap.c MFV r251621: 2013-06-11 19:16:14 +00:00
zfeature.c Fix build on platforms where atomic_swap_64 is not available. 2014-01-02 03:24:44 +00:00
zfs_acl.c Enable kernel-specific code for FreeBSD also on other systems that use 2013-06-30 23:14:55 +00:00
zfs_byteswap.c MFV r246653: 2013-02-23 11:21:05 +00:00
zfs_ctldir.c MFV r260154 + 260182: 2014-01-02 07:34:36 +00:00
zfs_debug.c MFV r254079: 2013-08-08 23:38:31 +00:00
zfs_dir.c zfs: getnewvnode_reserve must be called outside of a zfs transaction 2014-01-16 12:22:46 +00:00
zfs_fm.c Merge illumos revisions 13572, 13573, 13574: 2012-01-24 23:09:54 +00:00
zfs_fuid.c MFV r246653: 2013-02-23 11:21:05 +00:00
zfs_ioctl.c MFV r260154 + 260182: 2014-01-02 07:34:36 +00:00
zfs_log.c MFV r251620: 2013-06-11 19:12:06 +00:00
zfs_onexit.c Change the cap_rights_t type from uint64_t to a structure that we can extend 2013-09-05 00:09:56 +00:00
zfs_replay.c MFV r248217: 2013-04-06 10:39:38 +00:00
zfs_rlock.c MFV r251620: 2013-06-11 19:12:06 +00:00
zfs_sa.c MFV r251620: 2013-06-11 19:12:06 +00:00
zfs_vfsops.c Rename global cnt to vm_cnt to avoid shadowing. 2014-03-22 10:26:09 +00:00
zfs_vnops.c MFV r262983: 2014-03-11 00:23:50 +00:00
zfs_znode.c fix a build problem with INVARIANTS enabled introduced in r260704 2014-01-16 13:44:37 +00:00
zfs.conf
zil.c MFV r259170: 2014-01-01 00:45:28 +00:00
zio_checksum.c MFV r254750: 2013-09-21 00:17:26 +00:00
zio_compress.c Add kstat entries for ZFS compression statistics. 2013-08-21 19:40:43 +00:00
zio_inject.c MFV r248217: 2013-04-06 10:39:38 +00:00
zio.c MFV r259170: 2014-01-01 00:45:28 +00:00
zle.c
zrlock.c
zvol.c Add property and sysctl to control how ZVOLs are exposed to OS. 2014-04-05 13:01:44 +00:00