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

lvconvert.c: call find_lv directly

This commit is contained in:
David Teigland 2015-05-19 14:50:58 +02:00 committed by Ondrej Kozina
parent 0d300b70f9
commit 08114840ca

View File

@ -3259,7 +3259,7 @@ static struct logical_volume *get_vg_lock_and_logical_volume(struct cmd_context
return_NULL;
}
if (!(lv = poll_get_copy_lv(cmd, vg, lv_name, NULL, 0))) {
if (!(lv = find_lv(vg, lv_name))) {
log_error("Can't find LV %s in VG %s", lv_name, vg_name);
unlock_and_release_vg(cmd, vg, vg_name);
return NULL;