]> git.proxmox.com Git - mirror_zfs.git/blobdiff - tests/zfs-tests/tests/functional/redundancy/redundancy.kshlib
Add enumerated vdev names to 'zpool iostat -v' and 'zpool list -v'
[mirror_zfs.git] / tests / zfs-tests / tests / functional / redundancy / redundancy.kshlib
index baee8269b1e15a21bbf229c5972db352c012192a..9888034667a7a5ac5ff2d0b1692611e134736338 100644 (file)
@@ -243,7 +243,7 @@ function get_vdevs #pool cnt
        typeset -i cnt=$2
 
        typeset all_devs=$(zpool iostat -v $pool | awk '{print $1}'| \
-               egrep -v "^pool$|^capacity$|^mirror$|^raidz1$|^raidz2$|^raidz3$|^draid1.*|^draid2.*|^draid3.*|---" | \
+               egrep -v "^pool$|^capacity$|^mirror\-[0-9]$|^raidz[1-3]\-[0-9]$|^draid[1-3].*\-[0-9]$|---" | \
                egrep -v "/old$|^$pool$")
        typeset -i i=0
        typeset vdevs