diff options
author | Akash B <[email protected]> | 2022-03-09 05:50:41 +0530 |
---|---|---|
committer | Tony Hutter <[email protected]> | 2022-09-15 10:23:01 -0700 |
commit | 03fa3ef264ab80296bad9b4ad54af8714a03df95 (patch) | |
tree | 05cb96ebe7ff9e042af3aac4c7635dc1c64e8a83 /module/zfs | |
parent | 8bd3dca9bf3e9a4315d58be316bcfaf8e76c6a6a (diff) |
Add physical device size to SIZE column in 'zpool list -v'
Add physical device size/capacity only for physical devices in
'zpool list -v' instead of displaying "-" in the SIZE column.
This would make it easier to see the individual device capacity and
to determine which spares are large enough to replace which devices.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Tony Hutter <[email protected]>
Reviewed-by: Dipak Ghosh <[email protected]>
Signed-off-by: Akash B <[email protected]>
Closes #12561
Closes #13106
Diffstat (limited to 'module/zfs')
-rw-r--r-- | module/zfs/vdev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/module/zfs/vdev.c b/module/zfs/vdev.c index 636bb5005..ccc35adc9 100644 --- a/module/zfs/vdev.c +++ b/module/zfs/vdev.c @@ -4406,6 +4406,7 @@ vdev_get_stats_ex(vdev_t *vd, vdev_stat_t *vs, vdev_stat_ex_t *vsx) vs->vs_rsize = vdev_get_min_asize(vd); if (vd->vdev_ops->vdev_op_leaf) { + vs->vs_pspace = vd->vdev_psize; vs->vs_rsize += VDEV_LABEL_START_SIZE + VDEV_LABEL_END_SIZE; /* |