diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2011-08-10 20:25:29 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2011-08-10 20:25:29 +0000 |
commit | 077a6755ff2ac55c334870fb47d18fb397904dc3 (patch) | |
tree | 07d328232a75d6df52bf13332d2e3b64c018aa0e /tools/pvmove.c | |
parent | 789f9c55e5a526ee3ded3f95bfce3ce836bc3dd2 (diff) | |
download | lvm2-077a6755ff2ac55c334870fb47d18fb397904dc3.tar.gz lvm2-077a6755ff2ac55c334870fb47d18fb397904dc3.tar.xz lvm2-077a6755ff2ac55c334870fb47d18fb397904dc3.zip |
Replace free_vg with release_vg
Move the free_vg() to vg.c and replace free_vg with release_vg
and make the _free_vg internal.
Patch is needed for sharing VG in vginfo cache so the release_vg function name
is a better fit here.
Diffstat (limited to 'tools/pvmove.c')
-rw-r--r-- | tools/pvmove.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/pvmove.c b/tools/pvmove.c index 79b17df8..7a2fd14a 100644 --- a/tools/pvmove.c +++ b/tools/pvmove.c @@ -460,7 +460,7 @@ static int _set_up_pvmove(struct cmd_context *cmd, const char *pv_name, vg = _get_vg(cmd, pv_vg_name(pv)); if (vg_read_error(vg)) { - free_vg(vg); + release_vg(vg); stack; return ECMD_FAILED; } @@ -526,7 +526,7 @@ static int _set_up_pvmove(struct cmd_context *cmd, const char *pv_name, r = ECMD_PROCESSED; out: free_pv_fid(pv); - unlock_and_free_vg(cmd, vg, pv_vg_name(pv)); + unlock_and_release_vg(cmd, vg, pv_vg_name(pv)); return r; } |