HomeFreeBSD

Update zconfig.sh to use new zvol names

Description

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

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Apr 19 2011, 11:14 PM
Parents
rG18f42382777b: Add parted and lsscsi dependencies to zfs-test
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG3fce1d0962dd: Update zconfig.sh to use new zvol names (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Apr 19 2011, 11:33 PM