Skip to contentSkip to conversation

master - tests: add test for missing mirror in-sync info

PATCH okozina 1 participant 1 message Oct 20, 2015

lore
Share & tools
lore

okozina

author
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=392248186e56fb216e49a2fee0caad5a506e3dd1
Commit:        392248186e56fb216e49a2fee0caad5a506e3dd1
Parent:        33465066c5eddaa6169814d645d543e5673bc2a6
Author:        Ondrej Kozina <[email protected]>
AuthorDate:    Tue Oct 20 11:55:51 2015 +0200
Committer:     Ondrej Kozina <[email protected]>
CommitterDate: Tue Oct 20 12:19:02 2015 +0200

tests: add test for missing mirror in-sync info

---
 test/shell/lvconvert-mirror.sh |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
test/shell/lvconvert-mirror.sh +8 -1
index 844f8e9..029112c 100644
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Copyright (C) 2010-2013 Red Hat, Inc. All rights reserved.
+# Copyright (C) 2010-2015 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
@@ -313,4 +313,11 @@ lvconvert --mirrorlog disk $vg/$lv1 "$dev3:0-1"
 check mirror $vg $lv1 "$dev3"
 lvremove -ff $vg
 
+# bz1272175: check lvconvert reports progress while waiting for mirror
+# to get synced
+lvcreate -l2 -n $lv1 $vg
+lvconvert --type mirror -i1 -m1 $vg/$lv1 | tee out
+grep -e "$vg/$lv1: Converted:" out || fail "Missing sync info in foreground mode"
+lvremove -ff $vg
+
 vgremove -ff $vg