mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
raid: reject message for 2-legged raid4/5 -> striped
Commit 763db8aab0
rejects 2-legged
conversions to striped/raid0 but different messages are displayed
for raid0 or striped. This commit provides the same rejection messages.
This commit is contained in:
parent
763db8aab0
commit
9958c41927
@ -6424,7 +6424,7 @@ int lv_raid_convert(struct logical_volume *lv,
|
||||
stripe_size = new_stripe_size_supplied ? new_stripe_size : seg->stripe_size;
|
||||
|
||||
if (segtype_is_striped(new_segtype))
|
||||
new_image_count = stripes ? : seg->area_count;
|
||||
new_image_count = stripes > 1 ? stripes : seg->area_count;
|
||||
|
||||
if (!_check_max_raid_devices(new_image_count))
|
||||
return_0;
|
||||
|
Loading…
Reference in New Issue
Block a user