mirror_zfs/cmd
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
..
raidz_test build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
zdb Move range_tree, btree, highbit64 to common code 2026-02-22 11:43:51 -08:00
zed build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
zfs Include missing newline in 'man' error 2026-02-09 10:19:08 -08:00
zinject build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
zpool Add zpool properties for allocation class space 2026-03-02 15:50:23 -08:00
zpool_influxdb build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
zstream build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
dbufstat.in SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
fsck.zfs.in cmd: move single-file binaries up, extract udev programs to udev/ 2022-05-10 10:20:34 -07:00
Makefile.am Move range_tree, btree, highbit64 to common code 2026-02-22 11:43:51 -08:00
mount_zfs.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zarcstat.in cmd: rename arcstat to zarcstat 2025-09-10 10:45:21 -07:00
zarcsummary cmd: rename arc_summary to zarcsummary 2025-09-10 10:45:13 -07:00
zfs_ids_to_path.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zgenhostid.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zhack.c zhack: Fix importing large allocation profiles on small pools (#18256) 2026-02-24 10:24:22 -08:00
zilstat.in ZIL: "crash" the ZIL if the pool suspends during fallback 2025-08-08 16:43:26 -07:00
ztest.c cmd/ztest: avoid PATH_MAX stack allocation in ztest_get_zdb_bin() (#18085) 2025-12-29 11:16:34 -08:00
zvol_wait zvol_wait logic may terminate prematurely 2022-10-11 12:12:04 -07:00