Update zconfig.sh to use new zvol names
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 19 Apr 2011 23:14:15 +0000 (16:14 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 19 Apr 2011 23:33:41 +0000 (16:33 -0700)
commit3fce1d0962dd28d094589f6d5c3f88a1db12b7cb
tree411848ecc25e889057812a46eb618b6fcd89b6c1
parent18f42382777b23bf84a698dea7861c943ebd5639
Update zconfig.sh to use new zvol names

This change should have occured when we commited the new udev
rules for zvols.  Basically, the test script is just out of date.
We need to update it to use the /dev/zvol/ device names, and
to expect the more common -partN suffixes.

I added a udev_trigger() call in zconfig_partition() and
zconfig_zvol_device_stat() to ensure that all the udev rules have
run before.  This ensures the devices are available to subsequent
commands and closes a small race.

Finally, I was forced added a small 'sleep 1' to test 10.  I
was observing occassional failures in my VM due to the device
still claiming to be busy.  Delaying betwen the various methods
of adding/removing a vdev avoids the issue.

Closes #207
scripts/zconfig.sh