[lvm-devel] master - raid10: Fix new use of area multiple calc.

Alasdair Kergon agk at fedoraproject.org
Mon May 23 23:41:43 UTC 2016


Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=498da2414b90098eb78cdd8c87bda7b022240fda
Commit:        498da2414b90098eb78cdd8c87bda7b022240fda
Parent:        b896f7de1e6773ce6c17bf29a9123276695f4b60
Author:        Alasdair G Kergon <agk at redhat.com>
AuthorDate:    Tue May 24 00:41:09 2016 +0100
Committer:     Alasdair G Kergon <agk at redhat.com>
CommitterDate: Tue May 24 00:41:09 2016 +0100

raid10: Fix new use of area multiple calc.

---
 lib/metadata/lv_manip.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c
index 2e9a7a3..8a2c728 100644
--- a/lib/metadata/lv_manip.c
+++ b/lib/metadata/lv_manip.c
@@ -3803,9 +3803,9 @@ static int _lv_extend_layered_lv(struct alloc_handle *ah,
 	 * 'stripes' and 'stripe_size' parameters meaningless.
 	 */
 	if (seg_is_raid(seg)) {
-		area_multiple = _calc_area_multiple(seg->segtype, seg->area_count, 0);
 		stripes = 1;
 		stripe_size = 0;
+		area_multiple = _calc_area_multiple(seg->segtype, seg->area_count, stripes);
 	}
 
 	for (fa = first_area, s = 0; s < seg->area_count; s++) {




More information about the lvm-devel mailing list