]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Improve ZTS block_device_wait debugging
authorRichard Elling <Richard.Elling@RichardElling.com>
Thu, 30 May 2019 23:38:51 +0000 (16:38 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 10 Jun 2019 16:21:19 +0000 (09:21 -0700)
commitcfc16f8ba8e6e35fc4651059ee95abbb8bf92f62
treeedd728ddb85eef597420b161948b246ea92dbf74
parent4cb1b541d42ae0e1f07851f3ea571935b5641624
Improve ZTS block_device_wait debugging

The udevadm settle timeout can be 120 or 180 seconds by default
for some distributions. If a long delay is experienced, it could
be due to some strangeness in a malfunctioning device that isn't
related to the devices under test. To help debug this condition,
a notice is given if settle takes too long.

Arguments can now be passed to block_device_wait. The expected
arguments are block device pathnames.

Reviewed by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: Giuseppe Di Natale <guss80@gmail.com>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Elling <Richard.Elling@RichardElling.com>
Closes #8839
tests/zfs-tests/include/blkdev.shlib