master - lvconvert: change how to get failed mirrors number
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=9d558fbcc232314dc93a405b4da3079f5d8e9cb7 Commit: 9d558fbcc232314dc93a405b4da3079f5d8e9cb7 Parent: ba68aed8366c201ab0a263a9935243a9e6f08875 Author: Lidong Zhong <[email protected]> AuthorDate: Fri May 22 15:50:42 2015 +0800 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Fri May 22 15:35:36 2015 +0200
lvconvert: change how to get failed mirrors number
Commit b00711e3128c9cb38da90f303a3b64cf3a30fc9b improperly convert _area_missing() replacment and moved check for AREA_PV seg_type() into same if() section.
Signed-off-by Lidong Zhong <[email protected]>
--- WHATS_NEW | 1 + tools/lvconvert.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.121 - ================================ + Fix test for AREA_PV when checking for failed mirrors. Do not use --sysinit in lvm2-activation{-early,-net}.service if lvmpolld used. Do not fail polling when poll LV not found (already finished or removed). Replace poll_get_copy_vg/lv fns with vg_read() and find_lv() in polldaemon.
tools/lvconvert.c +3 -3
@@ -839,10 +839,10 @@ static int _failed_mirrors_count(struct logical_volume *lv) ret +=_failed_mirrors_count (seg_lv (lvseg, s)); else if (seg_lv(lvseg, s)->status & PARTIAL_LV) ++ ret; - else if (seg_type(lvseg, s) == AREA_PV && - is_missing_pv(seg_pv(lvseg, s))) - ++ret; } +else if (seg_type (lvseg, s) ==AREA_PV && +is_missing_pv (seg_pv (lvseg, s))) + ++ret; } }