HomeFreeBSD

Fix "Add colored output to zfs list"

Description

Fix "Add colored output to zfs list"

Running zfs list -o avail rpool resulted in a core dump.
This commit will fix this.

Run the needed overhead only, when use_color() is true.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Wilson <gwilson@delphix.com>
Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de>
Closes #14712

Details

Provenance
Tino Reichardt <milky-zfs@mcmilk.de>Authored on Apr 5 2023, 4:57 PM
GitHub <noreply@github.com>Committed on Apr 5 2023, 4:57 PM
Parents
rG3399a30ee02d: contrib: dracut: fix race with root=zfs:dset when necessities required
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG6ecdd35bdbcd: Fix "Add colored output to zfs list" (authored by Tino Reichardt <milky-zfs@mcmilk.de>).Apr 5 2023, 4:57 PM