mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: skip unneeded status check
If 'remove' was succesful - we can break loop immediatelly.
This commit is contained in:
parent
1cc1333599
commit
ba313ac84a
@ -51,12 +51,11 @@ wait
|
||||
# First take down $lv1 then it's pvmove0
|
||||
j=0
|
||||
for i in $lv1 pvmove0 pvmove0_mimage_0 pvmove0_mimage_1 ; do
|
||||
while dmsetup status "$vg-$i"; do
|
||||
dmsetup remove "$vg-$i" || {
|
||||
j=$(( j + 1 ))
|
||||
test $j -le 100 || die "Cannot take down devices."
|
||||
sleep .1;
|
||||
}
|
||||
while dmsetup status "$vg-$i" ; do
|
||||
dmsetup remove "$vg-$i" && break
|
||||
j=$(( j + 1 ))
|
||||
test $j -le 100 || die "Cannot take down devices."
|
||||
sleep .1;
|
||||
done
|
||||
done
|
||||
dmsetup table | grep $PREFIX
|
||||
|
Loading…
Reference in New Issue
Block a user