From 39f312108d67509f8e95bf55bc0d627bd1feaaca Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sun, 3 Sep 2023 00:41:48 +0200 Subject: [PATCH] tests: check passing PV list --- test/shell/lvconvert-thin-from-thick.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/shell/lvconvert-thin-from-thick.sh b/test/shell/lvconvert-thin-from-thick.sh index d0c7718f3..c9939bb7f 100644 --- a/test/shell/lvconvert-thin-from-thick.sh +++ b/test/shell/lvconvert-thin-from-thick.sh @@ -40,13 +40,17 @@ aux prepare_vg 2 6000 # error -> thin lvcreate --type error -Zn -L10 -n $lv1 $vg -lvconvert --yes --type thin $vg/$lv1 +lvconvert --yes --type thin $vg/$lv1 "$dev2" +check lv_on $vg ${lv1}_tpool0_tmeta "$dev2" +check lv_on $vg lvol0_pmspare "$dev2" not dd if="$DM_DEV_DIR/$vg/$lv1" of=/dev/null bs=512 count=1 lvremove -f $vg # zero -> thin lvcreate --type zero -L2T -n $lv1 $vg -lvconvert --yes --type thin $vg/$lv1 +lvconvert --yes --type thin $vg/$lv1 "$dev1" +check lv_on $vg ${lv1}_tpool0_tmeta "$dev1" +check lv_on $vg lvol0_pmspare "$dev1" lvremove -f $vg # zero -> thin --test