zfs/contrib/pyzfs/libzfs_core
Allan Jude 2a673e76a9
Vdev Properties Feature
Add properties, similar to pool properties, to each vdev.
This makes use of the existing per-vdev ZAP that was added as
part of device evacuation/removal.

A large number of read-only properties are exposed,
many of the members of struct vdev_t, that provide useful
statistics.

Adds support for read-only "removing" vdev property.
Adds the "allocating" property that defaults to "on" and
can be set to "off" to prevent future allocations from that
top-level vdev.

Supports user-defined vdev properties.
Includes support for properties.vdev in SYSFS.

Co-authored-by: Allan Jude <allan@klarasystems.com>
Co-authored-by: Mark Maybee <mark.maybee@delphix.com>
Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Mark Maybee <mark.maybee@delphix.com>
Signed-off-by: Allan Jude <allan@klarasystems.com>
Closes #11711
2021-11-30 07:46:25 -07:00
..
bindings Remove code for zfs remap 2019-06-24 16:44:01 -07:00
test Replace ZoL with OpenZFS where applicable 2021-05-07 17:20:37 -07:00
__init__.py Replace ZFS on Linux references with OpenZFS 2020-10-08 20:10:13 -07:00
_constants.py Vdev Properties Feature 2021-11-30 07:46:25 -07:00
_error_translation.py Change the error handling for invalid property values 2020-08-01 08:41:31 -07:00
_libzfs_core.py Implement bookmark copying 2020-02-11 13:19:12 -08:00
_nvlist.py Fix typos in contrib/ 2019-08-30 09:44:43 -07:00
ctypes.py pyzfs: python3 support (library 2/2) 2019-01-06 10:39:41 -08:00
exceptions.py Fix cstyle warnings 2020-03-17 15:42:27 -07:00