zfs
zfs copied to clipboard
`zpool iostat` columns are misaligned
System information
| Type | Version/Name |
|---|---|
| Distribution Name | Ubuntu |
| Distribution Version | |
| Kernel Version | |
| Architecture | |
| OpenZFS Version | 0e96db931979eff8685bd380684d426ec4681f19 |
Describe the problem you're observing
$ zpool iostat test 1
capacity operations bandwidth
pool alloc free read write read write
---------- ----- ----- ----- ----- ----- -----
test 1.13T 512P 115 36.4K 312K 108M
test 1.13T 512P 0 0 0 0
test 1.13T 512P 0 0 0 0
test 1.13T 512P 0 392 0 6.06M
test 1.13T 512P 0 225 0 4.06M
test 1.13T 512P 0 740 0 14.1M
test 1.13T 512P 0 1.59K 0 26.2M
test 1.13T 512P 0 1.32K 0 26.2M
test 1.13T 512P 0 304 0 6.02M
Columns should be right-justified, so that they are aligned.
The bug was likely introduced by https://github.com/openzfs/zfs/pull/14621 @mcmilk @behlendorf @Low-power
See print_stat_color()
Describe how to reproduce the problem
run zpool iostat (any arguments)