mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
Fix column width in 'zpool iostat -v' and 'zpool list -v'
This commit fixes a minor spacing issue caused when enumerating vdev names, which originated from #13031 Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Akash B <akash-b@hpe.com> Signed-off-by: Samuel Wycliffe <samuelwycliffe@gmail.com> Closes #13811
This commit is contained in:
parent
59767479ac
commit
7c0e3941cd
@ -5466,8 +5466,8 @@ get_namewidth_iostat(zpool_handle_t *zhp, void *data)
|
|||||||
* get_namewidth() returns the maximum width of any name in that column
|
* get_namewidth() returns the maximum width of any name in that column
|
||||||
* for any pool/vdev/device line that will be output.
|
* for any pool/vdev/device line that will be output.
|
||||||
*/
|
*/
|
||||||
width = get_namewidth(zhp, cb->cb_namewidth, cb->cb_vdevs.cb_name_flags,
|
width = get_namewidth(zhp, cb->cb_namewidth,
|
||||||
cb->cb_verbose);
|
cb->cb_vdevs.cb_name_flags | VDEV_NAME_TYPE_ID, cb->cb_verbose);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The width we are calculating is the width of the header and also the
|
* The width we are calculating is the width of the header and also the
|
||||||
@ -6298,8 +6298,8 @@ get_namewidth_list(zpool_handle_t *zhp, void *data)
|
|||||||
list_cbdata_t *cb = data;
|
list_cbdata_t *cb = data;
|
||||||
int width;
|
int width;
|
||||||
|
|
||||||
width = get_namewidth(zhp, cb->cb_namewidth, cb->cb_name_flags,
|
width = get_namewidth(zhp, cb->cb_namewidth,
|
||||||
cb->cb_verbose);
|
cb->cb_name_flags | VDEV_NAME_TYPE_ID, cb->cb_verbose);
|
||||||
|
|
||||||
if (width < 9)
|
if (width < 9)
|
||||||
width = 9;
|
width = 9;
|
||||||
|
Loading…
Reference in New Issue
Block a user