1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-08-30 05:49:28 +03:00

tests: add wait on udev processing

Trying to avoid collision with udev watch rule preventing to
succeed 'dmsetup remove' becuase it keeps device open.
This commit is contained in:
Zdenek Kabelac
2020-05-15 16:56:40 +02:00
parent deb5160181
commit d3b515cea5

View File

@ -56,7 +56,9 @@ dmsetup create "$THIN" --table "0 40960 thin $DM_DEV_DIR/mapper/$POOL 0"
mkfs.ext4 "$DM_DEV_DIR/mapper/$THIN"
dmsetup remove "$THIN"
aux udev_wait
dmsetup remove "$THIN" || { sleep .5 ; dmsetup remove "$THIN" }
lvchange -an $vg/pool