From 9e7b00a3b9cecd43c7a339ee4ae5fb174179d3dd Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sat, 17 Mar 2018 14:26:15 +0100 Subject: [PATCH] tests: test striped COW LV --- test/shell/lvconvert-snapshot.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/shell/lvconvert-snapshot.sh b/test/shell/lvconvert-snapshot.sh index f751c3055..ecf6b3c8a 100644 --- a/test/shell/lvconvert-snapshot.sh +++ b/test/shell/lvconvert-snapshot.sh @@ -17,7 +17,7 @@ SKIP_WITH_LVMPOLLD=1 . lib/inittest -aux prepare_pvs 1 +aux prepare_pvs 2 get_devs vgcreate -s 1k "$vg" "${DEVICES[@]}" @@ -30,6 +30,7 @@ lvcreate -L1 -s -n $lv3 $vg/$lv2 lvcreate -l1 -n $lv4 $vg lvcreate -L1 -n $lv5 $vg lvcreate -L1 -n $lv6 $vg +lvcreate -L1 -i2 -n $lv7 $vg not lvconvert -s $vg/$lv1 $vg/not_exist @@ -60,4 +61,7 @@ grep "smaller" err lvconvert --yes -s $vg/$lv2 $vg/$lv5 lvconvert --yes --type snapshot $vg/$lv2 $vg/$lv6 +# Striped LV is also supported +lvconvert --yes --snapshot $vg/$lv2 $vg/$lv7 + vgremove -f $vg