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

debug: add internal error for passed LV

TODO: in fact we should parameter LV.
This commit is contained in:
Zdenek Kabelac 2014-04-01 20:11:50 +02:00
parent 1eaef2b705
commit dc5a3c9964

View File

@ -5206,6 +5206,11 @@ int remove_layer_from_lv(struct logical_volume *lv,
return 0;
}
parent = parent_seg->lv;
if (parent != lv) {
log_error(INTERNAL_ERROR "Wrong layer %s in %s",
layer_lv->name, lv->name);
return 0;
}
/*
* Before removal, the layer should be cleaned up,