[lvm-devel] master - test: add raid4 to upconvert allocation failure tests

Heinz Mauelshagen heinzm at sourceware.org
Sat Apr 22 05:50:38 UTC 2017


Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=effeb2b93d4840b906b1bfa45d05bea9ff8d11e6
Commit:        effeb2b93d4840b906b1bfa45d05bea9ff8d11e6
Parent:        149e4fa04b68da8979936ea3eb5bc68fb27127b2
Author:        Heinz Mauelshagen <heinzm at redhat.com>
AuthorDate:    Sat Apr 22 00:43:31 2017 +0200
Committer:     Heinz Mauelshagen <heinzm at redhat.com>
CommitterDate: Sat Apr 22 00:43:31 2017 +0200

test: add raid4 to upconvert allocation failure tests

---
 .../shell/lvconvert-raid-takeover-alloc-failure.sh |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/test/shell/lvconvert-raid-takeover-alloc-failure.sh b/test/shell/lvconvert-raid-takeover-alloc-failure.sh
index 7cb8378..3870c35 100644
--- a/test/shell/lvconvert-raid-takeover-alloc-failure.sh
+++ b/test/shell/lvconvert-raid-takeover-alloc-failure.sh
@@ -49,6 +49,10 @@ function check_no_sub_lvs
 
 # 6-way striped: neither conversion to raid5 nor raid6 possible
 lvcreate --yes --stripes 6 --size 4M --name $lv1 $vg
+not lvconvert --yes --type raid4 $vg/$lv1
+check lv_field $vg/$lv1 segtype "striped"
+check_no_sub_lvs $vg $lv1 0 5
+
 not lvconvert --yes --type raid5 $vg/$lv1
 check lv_field $vg/$lv1 segtype "striped"
 check_no_sub_lvs $vg $lv1 0 5




More information about the lvm-devel mailing list