Skip to contentSkip to conversation

main - tests: update handling of thin-pool removal

PATCH Zdenek Kabelac 1 participant 1 message Mar 15, 2021

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=78406ef6174b20ba2ee3e6405b8ed39804990482
Commit:        78406ef6174b20ba2ee3e6405b8ed39804990482
Parent:        e5e957e3308a6a03503b6ded290dc975494204e5
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Thu Mar 11 10:25:41 2021 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Mar 15 11:13:24 2021 +0100

tests: update handling of thin-pool removal

We shall no longer activate thin-pool, when
it's going away together with all thin volumes.

---
 test/shell/component-thin.sh | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)
test/shell/component-thin.sh +2 -8
index 3cf02f37d..ddadd0f8e 100644
@@ -39,11 +39,5 @@ lvs -a
 # When component LVs are active, thin-pool cannot be actived
 not lvcreate -V20 $vg/pool
 
-
-# FIXME: ATM removal of thin volumes goes 1-by-1 and needs to activate thin-pool.
-# And thin-pool cannot be activate thus vgremove fails.
-# To fix this it would need to be able to remove volumes without activation.
-should vgremove -f $vg
-
-# -ff bypass activation failure
-vgremove -ff $vg
+# Rremoval of thin volumes should not need to activate thin-pool.
+vgremove -f $vg