Skip to contentSkip to conversation

master - test: add striped -> raid0 test script

PATCH Heinz Mauelshagen 1 participant 1 message Aug 22, 2018

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=3c966e637fe1bec587ceb9ad13aa009db64b4f8e
Commit:        3c966e637fe1bec587ceb9ad13aa009db64b4f8e
Parent:        e83c4f07ca4a84808178d5d22cba655e5e370cd8
Author:        Heinz Mauelshagen <[email protected]>
AuthorDate:    Wed Aug 22 17:11:03 2018 +0200
Committer:     Heinz Mauelshagen <[email protected]>
CommitterDate: Wed Aug 22 17:12:44 2018 +0200

test: add striped -> raid0 test script

---
 test/shell/lvconvert-striped-raid0.sh |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)
test/shell/lvconvert-striped-raid0.sh new file +25 -0
new file mode 100644
index 0000000..5cfb792
@@ -0,0 +1,25 @@
+#!/usr/bin/env bash
+
+# Copyright (C) 2018 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
+# of the GNU General Public License v.2.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+
+SKIP_WITH_LVMPOLLD=1
+
+. lib/inittest
+
+aux have_raid 1 7 0 || skip
+
+aux prepare_vg 3 16
+
+lvcreate -aey --type striped -i 3 -l3 -n $lv $vg
+lvconvert -y --type raid0_meta $vg/$lv
+check lv_field $vg/$lv segtype "raid0_meta"
+vgremove -ff $vg