public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH storage 0/3] api: disks: zfs: fix error counters and in-use spares in pool details
@ 2026-10-03 12:49 Michal Fox
  2026-10-03 12:49 ` [PATCH storage 1/3] test: add tests for zpool status parsing of the ZFS disk API Michal Fox
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Michal Fox @ 2026-10-03 12:49 UTC (permalink / raw)
  To: pve-devel

the ZFS pool details of the disk API showed wrong error counters once
they reach 1024, as 'zpool status' shortens them to a value like
'1.10K' (#6640, #6938), and lost the message of a hot spare in use,
whose words got parsed as counters (#6389). both also logged "isn't
numeric" warnings to the journal.

1/3 adds a test for the zpool status parser, which the two fixes extend
with their case. 2/3 requests exact counters with '-p', as Fabian
suggested in #6938, and 3/3 builds on that by only accepting digits as
counters.

tested with 'make test' in src, each patch on its own, and with the
zpool output from #6389.

Michal Fox (3):
  test: add tests for zpool status parsing of the ZFS disk API
  fix #6640, #6938: api: disks: zfs: return exact error counters
  fix #6389: api: disks: zfs: parse the message of hot spares in use

 src/PVE/API2/Disks/ZFS.pm        |   4 +-
 src/test/run_disk_tests.pl       |   2 +-
 src/test/zfs_pool_detail_test.pm | 345 +++++++++++++++++++++++++++++++
 3 files changed, 348 insertions(+), 3 deletions(-)
 create mode 100644 src/test/zfs_pool_detail_test.pm

-- 
2.43.0




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-10-03 12:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-03 12:49 [PATCH storage 0/3] api: disks: zfs: fix error counters and in-use spares in pool details Michal Fox
2026-10-03 12:49 ` [PATCH storage 1/3] test: add tests for zpool status parsing of the ZFS disk API Michal Fox
2026-10-03 12:49 ` [PATCH storage 2/3] fix #6640, #6938: api: disks: zfs: return exact error counters Michal Fox
2026-10-03 12:49 ` [PATCH storage 3/3] fix #6389: api: disks: zfs: parse the message of hot spares in use Michal Fox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal