mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
raid10: Fix #stripes in lvcreate msg when too many.
This commit is contained in:
parent
7412690dd2
commit
be85c22f65
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.165 -
|
Version 2.02.165 -
|
||||||
===================================
|
===================================
|
||||||
|
Fix number of stripes shown in lvcreate raid10 message when too many.
|
||||||
Do not monitor cache-pool metadata when LV is just being cleared.
|
Do not monitor cache-pool metadata when LV is just being cleared.
|
||||||
Add allocation/cache_pool_max_chunks to prevent misuse of cache target.
|
Add allocation/cache_pool_max_chunks to prevent misuse of cache target.
|
||||||
Give error not segfault in lvconvert --splitmirrors when PV lies outside LV.
|
Give error not segfault in lvconvert --splitmirrors when PV lies outside LV.
|
||||||
|
@ -591,7 +591,7 @@ static int _read_mirror_and_raid_params(struct cmd_context *cmd,
|
|||||||
/* FIMXE: raid10 check has to change once we support data copies and odd numbers of stripes */
|
/* FIMXE: raid10 check has to change once we support data copies and odd numbers of stripes */
|
||||||
if (seg_is_raid10(lp) && lp->mirrors * lp->stripes > max_images) {
|
if (seg_is_raid10(lp) && lp->mirrors * lp->stripes > max_images) {
|
||||||
log_error("Only up to %u stripes in %s supported currently.",
|
log_error("Only up to %u stripes in %s supported currently.",
|
||||||
max_images, lp->segtype->name);
|
max_images / lp->mirrors, lp->segtype->name);
|
||||||
return 0;
|
return 0;
|
||||||
} else if (seg_is_mirrored(lp)) {
|
} else if (seg_is_mirrored(lp)) {
|
||||||
if (lp->mirrors > max_images) {
|
if (lp->mirrors > max_images) {
|
||||||
|
Loading…
Reference in New Issue
Block a user