master - pvmove.c: call vg_read directly
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=131c657735d3a315ceb9f072cb9a9591d363fa78 Commit: 131c657735d3a315ceb9f072cb9a9591d363fa78 Parent: e5e0e220223edf0789d38a0a98341d745cf95b15 Author: David Teigland <[email protected]> AuthorDate: Tue May 19 12:05:38 2015 +0200 Committer: Ondrej Kozina <[email protected]> CommitterDate: Tue May 19 20:55:31 2015 +0200
pvmove.c: call vg_read directly
--- tools/pvmove.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
tools/pvmove.c +2 -2
@@ -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);