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

cleanup: make this error an internal error

We shouldn't get here with wrong type.
This commit is contained in:
Zdenek Kabelac 2016-11-23 17:15:10 +01:00
parent 5fd5cfe061
commit a04b4bb89e

View File

@ -3676,7 +3676,7 @@ int lv_add_mirror_lvs(struct logical_volume *lv,
seg = first_seg(lv);
if (dm_list_size(&lv->segments) != 1 || seg_type(seg, 0) != AREA_LV) {
log_error("Mirror layer must be inserted before adding mirrors.");
log_error(INTERNAL_ERROR "Mirror layer must be inserted before adding mirrors.");
return 0;
}