mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: add some udev waits
Avoid possible udev race - since dmsetup create is not using the same cookie logic as lvm2 commands, try to avoid racing on some systems with udev scanning.
This commit is contained in:
parent
b4af2571db
commit
2dc6c3d236
@ -42,6 +42,7 @@ test "$str" = "journal_crypt:$JOURNAL_CRYPT:$HEXKEY_32"
|
||||
str=$(dmsetup table "$PREFIX-integrity" | cut -d ' ' -f 14)
|
||||
test "$str" = "internal_hash:$INTERNAL_HASH_NOCRYPT"
|
||||
|
||||
aux udev_wait
|
||||
dmsetup remove "$PREFIX-integrity"
|
||||
dmsetup create "$PREFIX-integrity" --table "0 7856 integrity $DM_DEV_DIR/mapper/$PREFIX-zero 0 32 J 7 journal_sectors:88 interleave_sectors:32768 buffer_sectors:128 journal_watermark:50 commit_time:10000 internal_hash:$INTERNAL_HASH_CRYPT:$HEXKEY2_32 journal_crypt:$JOURNAL_CRYPT:$HEXKEY_32"
|
||||
|
||||
@ -54,5 +55,6 @@ test "$str" = "internal_hash:$INTERNAL_HASH_CRYPT:$HIDENKEY_32"
|
||||
str=$(dmsetup table --showkeys "$PREFIX-integrity" | cut -d ' ' -f 14)
|
||||
test "$str" = "internal_hash:$INTERNAL_HASH_CRYPT:$HEXKEY2_32"
|
||||
|
||||
aux udev_wait
|
||||
dmsetup remove "$PREFIX-integrity"
|
||||
dmsetup remove "$PREFIX-zero"
|
||||
|
@ -71,5 +71,6 @@ test "$str" = "$HIDENKEY_32"
|
||||
str=$(dmsetup table --showkeys "$PREFIX-crypt" | cut -d ' ' -f 5)
|
||||
test "$str" = "$HEXKEY_32"
|
||||
|
||||
aux udev_wait
|
||||
dmsetup remove "$PREFIX-crypt"
|
||||
dmsetup remove "$PREFIX-zero"
|
||||
|
Loading…
Reference in New Issue
Block a user