From fe7c15985b184e6e15320755ebcea0ec786be59c Mon Sep 17 00:00:00 2001 From: Ryan Moeller Date: Fri, 31 Jan 2020 11:55:51 -0500 Subject: [PATCH] Left-align index props MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Index type props display as strings, which should be aligned to the left not to the right. Before: ``` FreeBSD-13_0-CURRENT-r356528 ➜ ~ zfs list -ro name,aclmode,mountpoint NAME ACLMODE MOUNTPOINT p0 passthrough /p0 p0/foo discard /p0/foo ``` After: ``` FreeBSD-13_0-CURRENT-r356528 ➜ ~ zfs list -ro name,aclmode,mountpoint NAME ACLMODE MOUNTPOINT p0 passthrough /p0 p0/foo discard /p0/foo ``` Reviewed-by: Igor Kozhukhov Reviewed-by: George Melikov Reviewed-by: Alexander Motin Reviewed-by: Brian Behlendorf Signed-off-by: Ryan Moeller Closes #9912 --- module/zcommon/zprop_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/zcommon/zprop_common.c b/module/zcommon/zprop_common.c index 2f473413a..faab9d9a7 100644 --- a/module/zcommon/zprop_common.c +++ b/module/zcommon/zprop_common.c @@ -143,7 +143,7 @@ zprop_register_index(int prop, const char *name, uint64_t def, const char *colname, const zprop_index_t *idx_tbl) { zprop_register_impl(prop, name, PROP_TYPE_INDEX, def, NULL, attr, - objset_types, values, colname, B_TRUE, B_TRUE, idx_tbl); + objset_types, values, colname, B_FALSE, B_TRUE, idx_tbl); } void