From 0ce9ae3cda9411f8f2a5491b07a6c4f06ab44da1 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sun, 4 Dec 2016 22:27:57 +0100 Subject: [PATCH] tests: more snaps Check lvs reports 'origin' not openned. --- test/shell/snapshot-merge-stack.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/shell/snapshot-merge-stack.sh b/test/shell/snapshot-merge-stack.sh index 3ee9eaa4e..bfafe7140 100644 --- a/test/shell/snapshot-merge-stack.sh +++ b/test/shell/snapshot-merge-stack.sh @@ -37,14 +37,17 @@ snap_and_merge() { lvconvert -b --merge $vg/$lv2 lvs -a -o+lv_merging,lv_merge_failed $vg + get lv_field $vg/$lv1 lv_attr | grep "Owi-ao" + get lv_field $vg/$lv2 lv_attr | grep "Swi-a-s---" kill $SLEEP_PID aux delay_dev "$dev1" 0 200 $(get first_extent_sector "$dev1"): lvchange --poll n --refresh $vg/$lv1 dmsetup table - lvs -a -o+lv_merging,lv_merge_failed $vg + lvs -av -o+lv_merging,lv_merge_failed $vg + # Origin is closed and snapshot merge could run + get lv_field $vg/$lv1 lv_attr | grep "Owi-a-" sleep 1 - check lv_attr_bit state $vg/$lv1 "a" check lv_attr_bit state $vg/$lv2 "a" aux error_dev "$dev2" $(get first_extent_sector "$dev2"): aux enable_dev "$dev1"