zfs/cmd/zpool
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
..
compatibility.d Add compatibility file sets (ZoL 0.6.1, 0.6.4, OpenZFS 2.1) 2021-03-31 09:40:25 -07:00
os Move check_file to os/$platform section 2021-07-26 16:34:11 -07:00
zpool.d Remove basename(1). Clean up/shorten some coreutils pipelines 2021-11-11 13:27:37 -07:00
.gitignore Add .gitignore files to exclude build products 2010-01-08 11:35:17 -08:00
Makefile.am Rescan enclosure sysfs path on import 2021-10-04 12:32:16 -07:00
zpool_iter.c Vdev Properties Feature 2021-11-30 07:46:25 -07:00
zpool_main.c Vdev Properties Feature 2021-11-30 07:46:25 -07:00
zpool_util.c zpool: import: use realloc for realloc, remove strtok 2021-05-26 14:50:59 -07:00
zpool_util.h Vdev Properties Feature 2021-11-30 07:46:25 -07:00
zpool_vdev.c Move check_file to os/$platform section 2021-07-26 16:34:11 -07:00