mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
ZTS: Fix DEV_DSKDIR trim from disk
Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Richard Elling <Richard.Elling@RichardElling.com> Closes #7848
This commit is contained in:
parent
de61daa597
commit
6fa1e1e73a
@ -2006,7 +2006,7 @@ function check_hotspare_state # pool disk state{inuse,avail}
|
||||
function wait_hotspare_state # pool disk state timeout
|
||||
{
|
||||
typeset pool=$1
|
||||
typeset disk=${2#$/DEV_DSKDIR/}
|
||||
typeset disk=${2#*$DEV_DSKDIR/}
|
||||
typeset state=$3
|
||||
typeset timeout=${4:-60}
|
||||
typeset -i i=0
|
||||
@ -2050,7 +2050,7 @@ function check_slog_state # pool disk state{online,offline,unavail}
|
||||
function check_vdev_state # pool disk state{online,offline,unavail}
|
||||
{
|
||||
typeset pool=$1
|
||||
typeset disk=${2#$/DEV_DSKDIR/}
|
||||
typeset disk=${2#*$DEV_DSKDIR/}
|
||||
typeset state=$3
|
||||
|
||||
cur_state=$(get_device_state $pool $disk)
|
||||
@ -2069,7 +2069,7 @@ function check_vdev_state # pool disk state{online,offline,unavail}
|
||||
function wait_vdev_state # pool disk state timeout
|
||||
{
|
||||
typeset pool=$1
|
||||
typeset disk=${2#$/DEV_DSKDIR/}
|
||||
typeset disk=${2#*$DEV_DSKDIR/}
|
||||
typeset state=$3
|
||||
typeset timeout=${4:-60}
|
||||
typeset -i i=0
|
||||
|
Loading…
Reference in New Issue
Block a user