HomeFreeBSD

Improve ZTS block_device_wait debugging

Description

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

Details

Provenance
Richard Elling <Richard.Elling@RichardElling.com>Authored on May 30 2019, 11:38 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jun 10 2019, 4:21 PM
Parents
rG4cb1b541d42a: Block_device_wait does not return an error code
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGcfc16f8ba8e6: Improve ZTS block_device_wait debugging (authored by Richard Elling <Richard.Elling@RichardElling.com>).Jun 10 2019, 4:21 PM