HomeFreeBSD

Colorize zpool iostat output

Description

Colorize zpool iostat output

Use a bold header and colorize the space suffixes in iostat
by order of magnitude like this:

  • K is green
  • M is yellow
  • G is red
  • T is lightblue
  • P is magenta
  • E is cyan
  • 0 space is colored gray

Reviewed-by: WHR <msl0000023508@gmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ethan Coe-Renner <coerenner1@llnl.gov>
Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de>
Closes #14621
Closes #14459

Details

Provenance
Tino Reichardt <milky-zfs@mcmilk.de>Authored on Mar 13 2023, 10:30 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Mar 24 2023, 5:23 PM
Parents
rG80f2cdcd67cc: Add more ANSI colors to libzfs
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG7bde396aa236: Colorize zpool iostat output (authored by Tino Reichardt <milky-zfs@mcmilk.de>).Mar 24 2023, 5:23 PM