summaryrefslogtreecommitdiffstats
path: root/lib/url/url.c
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-12-04 12:49:28 +1100
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-12-13 11:26:17 +1100
commit89cde533356d47b34a80679602c3900572b2dca6 (patch)
treeca0762e62a0ef52ee813aee251e0c2f19a92508e /lib/url/url.c
parent95ec722a057b3ebb44699af16ea68ca0dffef50e (diff)
downloadtalos-petitboot-89cde533356d47b34a80679602c3900572b2dca6.tar.gz
talos-petitboot-89cde533356d47b34a80679602c3900572b2dca6.zip
discover/devmapper: Retry dm-device remove if busyv1.10.0
Buildroot's libdm is not built with --enable-udev_sync, so device-mapper actions are not able to sync or wait for udev events. (see 185676316, "discover/devmapper: Disable libdm udev sync support") This can cause an issue when tearing down a snapshot in devmapper_destroy_snapshot() which performs a DM_DEVICE_REMOVE task against the snapshot, origin, and base devices one after the other. In some cases if the interval between these actions is too short the action can fail as the preceding device hasn't disappeared yet and the device being removed is still busy. Since we don't yet have a way to tell exactly when the device is ready, pause for a short time and retry the action, letting devmapper_destroy_snapshot() continue and, for example, letting mount_device() fall back to the physical device. Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'lib/url/url.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud