Skip to contentSkip to conversation

master - tests: updates test for raid scanning

PATCH Zdenek Kabelac 1 participant 1 message Jun 8, 2018

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=59dc9b445d6dba0ae119a2f517f4f665c6c522a9
Commit:        59dc9b445d6dba0ae119a2f517f4f665c6c522a9
Parent:        f20e828ec2c6ef6fbd6a271ecbf904a8e7943958
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Tue Jun 5 18:45:08 2018 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri Jun 8 14:37:31 2018 +0200

tests: updates test for raid scanning

---
 test/shell/pvcreate-md-fake-hdr.sh |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
test/shell/pvcreate-md-fake-hdr.sh +6 -0
index b89fe43..13d810c 100644
@@ -25,6 +25,12 @@ aux extend_filter_LVMTEST "a|/dev/md|"
 
 aux prepare_devs 4
 
+pvcreate "$dev2"
+aux prepare_md_dev 0 64 2 "$dev1" "$dev2"
+# Incorrectly shows  $dev2 as PV for 'raid0'
+pvs -vvvv
+
+
 vgcreate $SHARED $vg "$dev3" "$dev4"
 
 # create 2 disk MD raid1 array