lvconvert: change how to get failed mirrors number
PATCH 1/1 lvconvert: change how to get failed mirrors number
It's probably a typo since the segment type can't be AREA_LV and AREA_PV simultaneously.
Signed-off-by Lidong Zhong <[email protected]>
--- tools/lvconvert.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
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; } }
Signature · 1 line
1.8.1.4
PATCH 1/1 lvconvert: change how to get failed mirrors number
Dne 22.5.2015 v 09:50 Lidong Zhong napsal(a):
Quoted 3 lines
It's probably a typo since the segment type can't be
AREA_LVandAREA_PVsimultaneously.
Thanks for noticing - went upstream as:
https://www.redhat.com/archives/lvm-devel/2015-May/msg00211.html
Regards
Zdenek