mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Colorize zpool status output
If the ZFS_COLOR env variable is set, then use ANSI color output in zpool status: - Column headers are bold - Degraded or offline pools/vdevs are yellow - Non-zero error counters and faulted vdevs/pools are red - The 'status:' and 'action:' sections are yellow if they're displaying a warning. This also includes a new 'faketty' function in libtest.shlib that is compatible with FreeBSD (code provided by @freqlabs). Reviewed-by: Jorgen Lundman <lundman@lundman.net> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Ryan Moeller <ryan@ixsystems.com> Signed-off-by: Tony Hutter <hutter2@llnl.gov> Closes #9340
This commit is contained in:
committed by
Brian Behlendorf
parent
5e8ac05590
commit
9fb2771aa5
@@ -453,6 +453,12 @@ Cause
|
||||
to dump core on exit for the purposes of running
|
||||
.Sy ::findleaks .
|
||||
.El
|
||||
.Bl -tag -width "ZFS_COLOR"
|
||||
.It Ev ZFS_COLOR
|
||||
Use ANSI color in
|
||||
.Nm zpool status
|
||||
output.
|
||||
.El
|
||||
.Bl -tag -width "ZPOOL_IMPORT_PATH"
|
||||
.It Ev ZPOOL_IMPORT_PATH
|
||||
The search path for devices or files to use with the pool. This is a colon-separated list of directories in which
|
||||
|
||||
Reference in New Issue
Block a user