Wait up to timeout seconds for udev device
authorBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 11 Sep 2010 04:44:17 +0000 (21:44 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sun, 12 Sep 2010 03:54:41 +0000 (20:54 -0700)
commit2c4834f87af4beec4b16157622c85d2850cce25f
treefd389b2c63285dd28249b23fe63d054ec884938e
parentac063c48ae12061bbe0f66b3a9d641239782ae62
Wait up to timeout seconds for udev device

Occasional failures were observed in zconfig.sh because udev
could be delayed for a few seconds.  To handle this the wait_udev
function has been added to wait for timeout seconds for an
expected device before returning an error.  By default callers
currently use a 30 seconds timeout which should be much longer
than udev ever needs but not so long to worry the test suite
is hung.
scripts/common.sh.in
scripts/zconfig.sh
scripts/zfs.sh