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
Tony Hutter <hutter2@llnl.gov>Committed on Mar 28 2023, 9:13 PM
Parents
rG433b9a89c48e: Colorize zpool iostat output
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rG3da577280a13: Add colored output to zfs list (authored by Tino Reichardt <milky-zfs@mcmilk.de>).Mar 28 2023, 9:13 PM