mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvconvert.c: call vg_read directly
This commit is contained in:
parent
131c657735
commit
15939e3435
@ -3253,7 +3253,7 @@ static struct logical_volume *get_vg_lock_and_logical_volume(struct cmd_context
|
||||
struct volume_group *vg;
|
||||
struct logical_volume* lv = NULL;
|
||||
|
||||
vg = poll_get_copy_vg(cmd, vg_name, NULL, READ_FOR_UPDATE);
|
||||
vg = vg_read(cmd, vg_name, NULL, READ_FOR_UPDATE);
|
||||
if (vg_read_error(vg)) {
|
||||
release_vg(vg);
|
||||
return_NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user