dualfroz 6320a3a111 fix #6640, #6938: api: disks: zfs: return exact error counters
Without '-p', 'zpool status' shortens the READ, WRITE and CKSUM counters
of a vdev to a value with a unit suffix once they reach 1024, for
example 1130 read errors are shown as '1.10K'. The parser just adds
zero to those values, so the API returned 1.1 read errors in that case
and logged a warning like:

  Argument "1.10K" isn't numeric in addition (+)

Request exact values with '-p'. For the non-JSON output of 'zpool
status' it only affects those counters, the sizes in the scan line stay
human readable.

Signed-off-by: Michal Fox <me@dualfroz.com>
2026-10-02 16:15:39 +02:00
S
Description
My contributions to proxmox-git/pve-storage: 8 commits
101 KiB
0 Stars 1 Watchers 0 Forks
Languages
Perl 100%