mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +03:00
Fix vdev health padding in zpool list -v
Do not (incorrectly, right instead left) pad health string itself, it will be taken care of when printing property value below. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Signed-off-by: Yuri Pankov <yuripv@FreeBSD.org> Closes #11899
This commit is contained in:
parent
3e660534ea
commit
96904d879c
@ -6021,7 +6021,7 @@ print_one_column(zpool_prop_t prop, uint64_t value, const char *str,
|
||||
break;
|
||||
case ZPOOL_PROP_HEALTH:
|
||||
width = 8;
|
||||
snprintf(propval, sizeof (propval), "%-*s", (int)width, str);
|
||||
(void) strlcpy(propval, str, sizeof (propval));
|
||||
break;
|
||||
default:
|
||||
zfs_nicenum_format(value, propval, sizeof (propval), format);
|
||||
|
Loading…
Reference in New Issue
Block a user