From a04b4bb89ef79ebaf44804f9230f8ee8c652eb7c Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 23 Nov 2016 17:15:10 +0100 Subject: [PATCH] cleanup: make this error an internal error We shouldn't get here with wrong type. --- lib/metadata/lv_manip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c index 58be1db65..8c8888e50 100644 --- a/lib/metadata/lv_manip.c +++ b/lib/metadata/lv_manip.c @@ -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; }