Fix "lvconvert -mN $RaidLV" to display a warning in
case the same number of images is being requested.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=
1774696
const char *level = seg->area_count == 1 ? "raid1 with " : "";
const char *resil = new_count < seg->area_count ? "reducing" : "enhancing";
+ if (new_count == seg->area_count) {
+ log_warn("Type %s LV %s already has %u images.", lvseg_name(seg), display_lvname(lv), new_count);
+ return 1;
+ }
+
/* LV must be active to perform raid conversion operations */
if (!lv_is_active(lv)) {
log_error("%s must be active to perform this operation.",