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:
parent
1eaef2b705
commit
dc5a3c9964
@ -5202,10 +5202,15 @@ int remove_layer_from_lv(struct logical_volume *lv,
|
||||
|
||||
if (!(parent_seg = get_only_segment_using_this_lv(layer_lv))) {
|
||||
log_error("Failed to find layer %s in %s",
|
||||
layer_lv->name, lv->name);
|
||||
layer_lv->name, lv->name);
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user