HomeFreeBSD

Delay before destroying loopback devices

Description

Delay before destroying loopback devices

Generally I don't approve of just adding an arbitrary delay to
avoid a problem but in this case I'm going to let it slide. We
may need to delay briefly after 'zpool destroy' returns to ensure
the loopback devices are closed. If they aren't closed than
losetup -d will not be able to destroy them. Unfortunately,
there's no easy state the check so we'll have to make due with
a simple delay.

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Jun 3 2011, 9:13 PM
Parents
rG36391312afdf: Always unload zpios.ko on exit
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG608860b6d06a: Delay before destroying loopback devices (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Jun 3 2011, 9:38 PM