From 32b2e416cc7ecaee013ebecf0ac507622535ce2b Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 17 Jul 2023 14:30:39 +0200 Subject: [PATCH] tests: new logic for repair meta name deduced from cachepool name. --- test/shell/lvconvert-repair-cache.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/shell/lvconvert-repair-cache.sh b/test/shell/lvconvert-repair-cache.sh index 851a6117e..a09007c6f 100644 --- a/test/shell/lvconvert-repair-cache.sh +++ b/test/shell/lvconvert-repair-cache.sh @@ -67,14 +67,14 @@ lvchange -an $vg/$lv1 lvconvert --repair $vg/$lv1 lvs -a $vg -check lv_exists $vg ${lv1}_meta0 +check lv_exists $vg cpool_cpool_meta0 eval "$(lvs -S 'name=~_pmspare' -a --config 'report/mark_hidden_devices=0' -o name --noheading --nameprefixes $vg)" lvremove -f --yes "$vg/$LVM2_LV_NAME" # check --repair without creation of _pmspare device lvconvert --repair --poolmetadataspare n $vg/$lv1 -check lv_exists $vg ${lv1}_meta1 +check lv_exists $vg cpool_cpool_meta1 # check no _pmspare has been created in previous --repair test "0" = "$(lvs -S 'name=~_pmspare' -a -o name --noheading --nameprefixes $vg | wc -l)"