From 9958c4192766edb2b0f6cf7b963b72121c50b7ad Mon Sep 17 00:00:00 2001 From: Heinz Mauelshagen Date: Wed, 8 Nov 2017 18:17:26 +0100 Subject: [PATCH] raid: reject message for 2-legged raid4/5 -> striped Commit 763db8aab02d7df551a3e8500d261ef6c9651bdb rejects 2-legged conversions to striped/raid0 but different messages are displayed for raid0 or striped. This commit provides the same rejection messages. --- lib/metadata/raid_manip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/metadata/raid_manip.c b/lib/metadata/raid_manip.c index 816c6d4dc..a90466640 100644 --- a/lib/metadata/raid_manip.c +++ b/lib/metadata/raid_manip.c @@ -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;