]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Left-align index props
authorRyan Moeller <ryan@iXsystems.com>
Fri, 31 Jan 2020 16:55:51 +0000 (11:55 -0500)
committerGitHub <noreply@github.com>
Fri, 31 Jan 2020 16:55:51 +0000 (08:55 -0800)
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 <igor@dilos.org>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #9912

module/zcommon/zprop_common.c

index 2f473413a575ac52e2ffd64d6df985e795063abc..faab9d9a74fdeebcf216392bcedc24f9ef43dd01 100644 (file)
@@ -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