1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +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:
Zdenek Kabelac 2015-09-21 22:44:43 +02:00
parent 7e63364529
commit 47f623d64b

View File

@ -34,11 +34,19 @@ mkfs.ext2 "$DM_DEV_DIR/$vg1/snap"
mkdir mnt
mount -o errors=remount-ro "$DM_DEV_DIR/$vg1/snap" mnt
sync
# intetionally suspend layer bellow
dmsetup suspend $vg-$lv1
# 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
dmsetup resume $vg-$lv1