1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

lvresize: ignore given stripe and stripe size args for raid0

This commit is contained in:
Peter Rajnoha 2024-08-29 13:57:52 +02:00
parent c65d379769
commit 83ae675f8d
No known key found for this signature in database
GPG Key ID: E776664036DF84AB
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Version 2.03.27 - Version 2.03.27 -
================== ==================
Ignore -i|--stripes, -I|--stripesize for lvextend on raid0 LV, like raid10.
Do not accept duplicate device names for pvcreate. Do not accept duplicate device names for pvcreate.
Version 2.03.26 - 23rd August 2024 Version 2.03.26 - 23rd August 2024

View File

@ -5458,6 +5458,9 @@ static int _lvresize_adjust_extents(struct logical_volume *lv,
/* FIXME Warn if command line values are being overridden? */ /* FIXME Warn if command line values are being overridden? */
lp->stripes = seg_last->area_count / seg_mirrors; lp->stripes = seg_last->area_count / seg_mirrors;
lp->stripe_size = seg_last->stripe_size; 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))) { } else if (!(lp->stripes == 1 || (lp->stripes > 1 && lp->stripe_size))) {
/* If extending, find stripes, stripesize & size of last segment */ /* If extending, find stripes, stripesize & size of last segment */
/* FIXME Don't assume mirror seg will always be AREA_LV */ /* FIXME Don't assume mirror seg will always be AREA_LV */