]> granicus.if.org Git - zfs/commit
Improve ZTS block_device_wait debugging
authorRichard Elling <Richard.Elling@RichardElling.com>
Thu, 30 May 2019 23:38:51 +0000 (16:38 -0700)
committerTony Hutter <hutter2@llnl.gov>
Wed, 25 Sep 2019 18:27:47 +0000 (11:27 -0700)
commit4be4dedb9f50edb35b18db4eef5c277bd93d23fa
tree6968d032045c4afc730be220586fdf2492eae835
parentfb52bf9b1daf237e23e49a6ba43eb9d3e300f758
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