Skip to content

zpool iostat columns are misaligned #14749

Closed
@ahrens

Description

@ahrens

System information

Type Version/Name
Distribution Name Ubuntu
Distribution Version
Kernel Version
Architecture
OpenZFS Version 0e96db9

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 #14621 @mcmilk @behlendorf @Low-power

See print_stat_color()

Describe how to reproduce the problem

run zpool iostat (any arguments)

Include any warning/errors/backtraces from the system logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: DefectIncorrect behavior (e.g. crash, hang)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions