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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user