summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2015-05-19 12:05:38 +0200
committerOndrej Kozina <okozina@redhat.com>2015-05-19 20:55:31 +0200
commit131c657735d3a315ceb9f072cb9a9591d363fa78 (patch)
treed5ca1cddd6bb3c55ba02e0603c2e25eac5bb5467
parente5e0e220223edf0789d38a0a98341d745cf95b15 (diff)
downloadlvm2-131c657735d3a315ceb9f072cb9a9591d363fa78.tar.gz
pvmove.c: call vg_read directly
-rw-r--r--tools/pvmove.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/pvmove.c b/tools/pvmove.c
index 94a5ffc42..dc36955b4 100644
--- a/tools/pvmove.c
+++ b/tools/pvmove.c
@@ -629,7 +629,7 @@ static int _set_up_pvmove(struct cmd_context *cmd, const char *pv_name,
/* Read VG */
log_verbose("Finding volume group \"%s\"", pv_vg_name(pv));
- vg = poll_get_copy_vg(cmd, pv_vg_name(pv), NULL, READ_FOR_UPDATE);
+ vg = vg_read(cmd, pv_vg_name(pv), NULL, READ_FOR_UPDATE);
if (vg_read_error(vg)) {
release_vg(vg);
return_ECMD_FAILED;
@@ -719,7 +719,7 @@ static int _read_poll_id_from_pvname(struct cmd_context *cmd, const char *pv_nam
return_0;
/* need read-only access */
- vg = poll_get_copy_vg(cmd, pv_vg_name(pv), NULL, 0);
+ vg = vg_read(cmd, pv_vg_name(pv), NULL, 0);
if (vg_read_error(vg)) {
log_error("ABORTING: Can't read VG for %s.", pv_name);
release_vg(vg);