]> sourceware.org Git - lvm2.git/commitdiff
raid10: Fix new use of area multiple calc.
authorAlasdair G Kergon <agk@redhat.com>
Mon, 23 May 2016 23:41:09 +0000 (00:41 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Mon, 23 May 2016 23:41:09 +0000 (00:41 +0100)
lib/metadata/lv_manip.c

index 2e9a7a3c4c1ae5f57e152409223503f6d6cdc3c9..8a2c7284f8d57072bf3d37c9a5b479d615d319e2 100644 (file)
@@ -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++) {
This page took 0.039721 seconds and 5 git commands to generate.