mirror_zfs/cmd/zpool
Ryan Moeller ac0fd40c8c Add zpool properties for allocation class space
The existing zpool properties accounting pool space (size, allocated,
fragmentation, expandsize, free, capacity) are based on the normal
metaslab class or are cumulative properties of several classes combined.

Add properties reporting the space accounting metrics for each metaslab
class individually.

Also introduce pool-wide AVAIL, USABLE, and USED properties reporting
values corresponding to FREE, SIZE, and ALLOC deflated for raidz.

Update ZTS to recognize the new properties and validate reported values.

While in zpool_get_parsable.cfg, add "fragmentation" to the list of
parsable properties.

Sponsored-by: Klara, Inc.
Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ameer Hamza <ahamza@ixsystems.com>
Signed-off-by: Ryan Moeller <ryan.moeller@klarasystems.com>
Cloes #18238
2026-03-02 15:50:23 -08:00
..
compatibility.d Update compatibility.d files 2025-08-25 16:47:19 -07:00
os GCC 15: Fix unterminated-string-initialization (#17244) 2025-04-16 09:33:29 -07:00
zpool.d zed: misc vdev_enc_sysfs_path fixes 2023-11-07 09:09:24 -08:00
Makefile.am build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
zpool_iter.c zfs: replace tpool with taskq 2025-11-19 08:16:51 -08:00
zpool_main.c Add zpool properties for allocation class space 2026-03-02 15:50:23 -08:00
zpool_util.c Move range_tree, btree, highbit64 to common code 2026-02-22 11:43:51 -08:00
zpool_util.h Move range_tree, btree, highbit64 to common code 2026-02-22 11:43:51 -08:00
zpool_vdev.c cmd/zpool cstyle issues 2025-11-14 15:58:50 -08:00