HomeFreeBSD

Add colored output to zfs list

Description

Add colored output to zfs list

Use a bold header row and colorize the AVAIL column based on
the used space percentage of volume.

We define these colors:

  • when > 80%, use yellow
  • when > 90%, use red

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 #14350

Details

Provenance
Tino Reichardt <milky-zfs@mcmilk.de>Authored on Mar 13 2023, 10:31 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Mar 24 2023, 5:24 PM
Parents
rG7bde396aa236: Colorize zpool iostat output
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG2bd0490fafe5: Add colored output to zfs list (authored by Tino Reichardt <milky-zfs@mcmilk.de>).Mar 24 2023, 5:24 PM