mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
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
This commit is contained in:
committed by
Tony Hutter
parent
433b9a89c4
commit
3da577280a
@@ -708,6 +708,8 @@ command will be undone if the share is ever unshared (like via a reboot).
|
||||
.It Sy ZFS_COLOR
|
||||
Use ANSI color in
|
||||
.Nm zfs Cm diff
|
||||
and
|
||||
.Nm zfs Cm list
|
||||
output.
|
||||
.El
|
||||
.Bl -tag -width "ZFS_MOUNT_HELPER"
|
||||
|
||||
Reference in New Issue
Block a user