Fix pool_names_001_pos test case

After volume creation wait until the new block devices have settled
before destroying them.  Failure to do some can result in EBUSY
being returned and the test case failing.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #5636 
Closes #5637
This commit is contained in:
Brian Behlendorf 2017-01-23 17:04:26 -08:00 committed by GitHub
parent 3d43125fd4
commit e85d62faae
1 changed files with 1 additions and 0 deletions

View File

@ -108,6 +108,7 @@ do
log_must $ZFS snapshot $name/$name@$name
log_must $ZFS clone $name/$name@$name $name/clone_$name
log_must $ZFS create -V 150m $name/$name/$name
block_device_wait
log_must $ZPOOL destroy $name
done