mirror of
git://sourceware.org/git/lvm2.git
synced 2024-10-03 17:50:03 +03:00
lvresize: ignore given stripe and stripe size args for raid0
This commit is contained in:
parent
c65d379769
commit
83ae675f8d
@ -1,5 +1,6 @@
|
||||
Version 2.03.27 -
|
||||
==================
|
||||
Ignore -i|--stripes, -I|--stripesize for lvextend on raid0 LV, like raid10.
|
||||
Do not accept duplicate device names for pvcreate.
|
||||
|
||||
Version 2.03.26 - 23rd August 2024
|
||||
|
@ -5458,6 +5458,9 @@ 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 (!(lp->stripes == 1 || (lp->stripes > 1 && lp->stripe_size))) {
|
||||
/* 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