]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add physical device size to SIZE column in 'zpool list -v'
authorAkash B <akash-b@hpe.com>
Wed, 9 Mar 2022 00:20:41 +0000 (05:50 +0530)
committerTony Hutter <hutter2@llnl.gov>
Thu, 15 Sep 2022 17:23:01 +0000 (10:23 -0700)
commit03fa3ef264ab80296bad9b4ad54af8714a03df95
tree05cb96ebe7ff9e042af3aac4c7635dc1c64e8a83
parent8bd3dca9bf3e9a4315d58be316bcfaf8e76c6a6a
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 <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Dipak Ghosh <dipak.ghosh@hpe.com>
Signed-off-by: Akash B <akash-b@hpe.com>
Closes #12561
Closes #13106
cmd/zpool/zpool_main.c
include/sys/fs/zfs.h
module/zfs/vdev.c
tests/zfs-tests/tests/functional/pool_checkpoint/checkpoint_lun_expsz.ksh