mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-04 09:18:36 +03:00
tests: update removal test
Test is currently checking a very non-standard use case. Make it a more resistent against being blocked in kernel.
This commit is contained in:
parent
7e63364529
commit
47f623d64b
@ -34,11 +34,19 @@ mkfs.ext2 "$DM_DEV_DIR/$vg1/snap"
|
|||||||
mkdir mnt
|
mkdir mnt
|
||||||
mount -o errors=remount-ro "$DM_DEV_DIR/$vg1/snap" mnt
|
mount -o errors=remount-ro "$DM_DEV_DIR/$vg1/snap" mnt
|
||||||
|
|
||||||
|
sync
|
||||||
|
|
||||||
# intetionally suspend layer bellow
|
# intetionally suspend layer bellow
|
||||||
dmsetup suspend $vg-$lv1
|
dmsetup suspend $vg-$lv1
|
||||||
|
|
||||||
# now this should pass without blocking
|
# now this should pass without blocking
|
||||||
dmsetup suspend --noflush --nolockfs $vg1-snap
|
#dmsetup suspend --noflush --nolockfs $vg1-snap &
|
||||||
|
dmsetup suspend $vg1-snap &
|
||||||
|
|
||||||
|
sleep .5
|
||||||
|
|
||||||
|
dmsetup info --noheadings -c -o suspended $vg1-snap | tee out
|
||||||
|
should grep -i suspend out
|
||||||
|
|
||||||
# unlock device below
|
# unlock device below
|
||||||
dmsetup resume $vg-$lv1
|
dmsetup resume $vg-$lv1
|
||||||
|
Loading…
Reference in New Issue
Block a user