Skip to contentSkip to conversation

master - tests: update for new thin pool messaging

PATCH Zdenek Kabelac 1 participant 1 message Jul 3, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=3dbb9a57ca684271dbbc26300aa2e35da9608aa3
Commit:        3dbb9a57ca684271dbbc26300aa2e35da9608aa3
Parent:        a900d150e4658a5d72c39acdd4fefd069b8f00b8
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Wed Jul 1 13:31:23 2015 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri Jul 3 16:13:15 2015 +0200

tests: update for new thin pool messaging

---
 test/shell/lvextend-thin-metadata-dmeventd.sh |    2 +-
 test/shell/thin-volume-list.sh                |    7 ++-----
 2 files changed, 3 insertions(+), 6 deletions(-)
test/shell/lvextend-thin-metadata-dmeventd.sh +1 -1
index 473f1ca..72cdb81 100644
@@ -76,7 +76,7 @@ grep expected out
 check inactive $vg pool_tmeta
 
 # Transaction_id is higher by 1
-fake_metadata_ 10 2 >data
+fake_metadata_ 10 3 >data
 "$LVM_TEST_THIN_RESTORE_CMD" -i data -o "$DM_DEV_DIR/mapper/$vg-$lv1"
 lvconvert -y --thinpool $vg/pool --poolmetadata $vg/$lv1
 not vgchange -ay $vg 2>&1 | tee out
test/shell/thin-volume-list.sh +2 -5
index c3dab25..88cae35 100644
@@ -29,11 +29,8 @@ lvcreate -T -L8M $vg/pool -V10M -n $lv1
 # skip $vg from activation
 aux lvmconf "activation/volume_list = [ \"$vg1\" ]"
 
-# We still could pass - since pool is still active
-lvcreate -V10 -n $lv2 -T $vg/pool
-
-# but $lv2 is not active
-check inactive $vg $lv2
+# We cannot pass - pool volume cannot be manipulated
+not lvcreate -V10 -n $lv2 -T $vg/pool
 
 vgchange -an $vg