summaryrefslogtreecommitdiff
path: root/usr/src/common
diff options
context:
space:
mode:
authorBrian Behlendorf <behlendorf1@llnl.gov>2022-09-29 09:25:31 +0200
committerPatrick Mooney <pmooney@oxide.computer>2022-09-29 18:15:23 +0000
commit609febc9a48c79a089214cb5d882759a72a38513 (patch)
treee8e55d2f89ec1a2ac691ade2a98be03f94746057 /usr/src/common
parente472a1cd85bffae230f8546d46fa757bade533e9 (diff)
downloadillumos-joyent-609febc9a48c79a089214cb5d882759a72a38513.tar.gz
13923 zpool list -v output is misaligned
Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: Andrew Stormont <andyjstormont@gmail.com> Approved by: Patrick Mooney <pmooney@pfmooney.com>
Diffstat (limited to 'usr/src/common')
-rw-r--r--usr/src/common/zfs/zprop_common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/src/common/zfs/zprop_common.c b/usr/src/common/zfs/zprop_common.c
index 03919f0e91..5517782337 100644
--- a/usr/src/common/zfs/zprop_common.c
+++ b/usr/src/common/zfs/zprop_common.c
@@ -410,6 +410,12 @@ zprop_width(int prop, boolean_t *fixed, zfs_type_t type)
*/
if (prop == ZFS_PROP_CREATION)
*fixed = B_FALSE;
+ /*
+ * 'health' is handled specially because it's a number
+ * internally, but displayed as a fixed 8 character string.
+ */
+ if (prop == ZPOOL_PROP_HEALTH)
+ ret = 8;
break;
case PROP_TYPE_INDEX:
idx = prop_tbl[prop].pd_table;