mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
Add enumerated vdev names to 'zpool iostat -v' and 'zpool list -v'
This commit adds enumerated names to disambiguate between the different vdevs. Previously only 'zpool status' showed enumerated vdev names, now 'zpool list -v' and 'zpool iostat -v' also shows the enumerated vdev names. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Dipak Ghosh <dipak.ghosh@hpe.com> Signed-off-by: Akash B <akash-b@hpe.com> Closes #12510 Closes #13031
This commit is contained in:
@@ -2145,7 +2145,7 @@ function get_disklist # pool
|
||||
|
||||
disklist=$(zpool iostat -v $1 | nawk '(NR >4) {print $1}' | \
|
||||
grep -v "\-\-\-\-\-" | \
|
||||
egrep -v -e "^(mirror|raidz[1-3]|spare|log|cache|special|dedup)$")
|
||||
egrep -v -e "^(mirror|raidz[1-3]|draid[1-3]|spare|log|cache|special|dedup)|\-[0-9]$")
|
||||
|
||||
echo $disklist
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user