mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
cleanup: make this error an internal error
We shouldn't get here with wrong type.
This commit is contained in:
parent
5fd5cfe061
commit
a04b4bb89e
@ -3676,7 +3676,7 @@ int lv_add_mirror_lvs(struct logical_volume *lv,
|
|||||||
seg = first_seg(lv);
|
seg = first_seg(lv);
|
||||||
|
|
||||||
if (dm_list_size(&lv->segments) != 1 || seg_type(seg, 0) != AREA_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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user