mirror_zfs/cmd/zpool
Rob Norris 37d8d4619f zpool iostat: update pool counter when skipping boot row
When skipping the boot row (with -y), the early loop meant we weren't
updating the "last_npools" count. That means the count never advanced
past zero, so cb_iteration was always reset to 0, leading to it being
"stuck" on the boot line, printing the header and nothing else forever.

Updating the pool counter on every loop sorts that out: it advances,
cb_iteration moves properly, and normal rows are printed.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #17807
2025-10-21 09:50:43 -07:00
..
compatibility.d Update compatibility.d files 2025-09-09 17:04:01 -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 Update compatibility.d files 2025-09-09 17:04:01 -07:00
zpool_iter.c zpool iostat: refresh pool list every interval 2025-09-29 16:50:49 -07:00
zpool_main.c zpool iostat: update pool counter when skipping boot row 2025-10-21 09:50:43 -07:00
zpool_util.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zpool_util.h zpool iostat: refresh pool list every interval 2025-09-29 16:50:49 -07:00
zpool_vdev.c Fix 'zpool add' safety check corner cases 2025-09-25 12:08:09 -07:00