zfs: fix the zfsd_hotspare_007_pos test
It was trying to destroy the pool while zfsd was detaching the spare, and "zpool destroy" failed. Fix by waiting until the spare has fully detached. MFC after: 2 weeks Sponsored by: Axcient
This commit is contained in:
parent
dca76f293a
commit
310a44b232
@ -82,6 +82,9 @@ function verify_assertion # spare_dev
|
||||
|
||||
# Re-enable the missing disk
|
||||
log_must create_gnop $REMOVAL_DISK $PHYSPATH
|
||||
|
||||
# And now the spare should be released
|
||||
wait_for_pool_dev_state_change 20 $spare_dev AVAIL
|
||||
}
|
||||
|
||||
typeset PHYSPATH="some_physical_path"
|
||||
|
Loading…
x
Reference in New Issue
Block a user