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

Revert "lvconvert: display warning if raid1 LV image count does not change"

This reverts superfluous commit 3c9177fdc0 as
_lv_raid_change_image_count() already checks for non-changed image count.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1872130
This commit is contained in:
Heinz Mauelshagen 2020-09-28 17:14:03 +02:00
parent bbc164991a
commit 8952dcbff0

View File

@ -3229,11 +3229,6 @@ int lv_raid_change_image_count(struct logical_volume *lv, int yes, uint32_t new_
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.",