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
Tony Hutter <hutter2@llnl.gov>Committed on Apr 13 2023, 4:39 PM
Parents
rGfc2c0256c55a: ZTS: Log test name to /dev/kmsg on Linux
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rG3d9f37026d65: Fix "Add colored output to zfs list" (authored by Tino Reichardt <milky-zfs@mcmilk.de>).Apr 13 2023, 4:39 PM