mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lv_manip: use the same param validation for RAID 0 as for RAID 1/4/5/6
This actually reverts commit83ae675f8d
. (cherry picked from commit1d8a4c4817
)
This commit is contained in:
parent
4a34959c1c
commit
f006e04009
@ -5465,9 +5465,6 @@ static int _lvresize_adjust_extents(struct logical_volume *lv,
|
||||
/* FIXME Warn if command line values are being overridden? */
|
||||
lp->stripes = seg_last->area_count / seg_mirrors;
|
||||
lp->stripe_size = seg_last->stripe_size;
|
||||
} else if (seg_is_raid0(seg_last)) {
|
||||
lp->stripes = seg_last->area_count;
|
||||
lp->stripe_size = seg_last->stripe_size;
|
||||
} else {
|
||||
/* If extending, find stripes, stripesize & size of last segment */
|
||||
/* FIXME Don't assume mirror seg will always be AREA_LV */
|
||||
|
Loading…
Reference in New Issue
Block a user