diff options
author | Alasdair Kergon <agk@redhat.com> | 2010-12-08 20:50:48 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2010-12-08 20:50:48 +0000 |
commit | 2b82bd79f59ffb49cc864cf0d2e9268c652443d3 (patch) | |
tree | 597817553c3ff5b4d6072e7ee37508b6deafe830 /tools/vgreduce.c | |
parent | e8bed35ddf264c67c44b9cf9cedef6b078bfd710 (diff) | |
download | lvm2-2b82bd79f59ffb49cc864cf0d2e9268c652443d3.tar.gz lvm2-2b82bd79f59ffb49cc864cf0d2e9268c652443d3.tar.xz lvm2-2b82bd79f59ffb49cc864cf0d2e9268c652443d3.zip |
Rename vg_release to free_vg.
Diffstat (limited to 'tools/vgreduce.c')
-rw-r--r-- | tools/vgreduce.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/vgreduce.c b/tools/vgreduce.c index eceafcd5..4aa8f01e 100644 --- a/tools/vgreduce.c +++ b/tools/vgreduce.c @@ -450,7 +450,7 @@ static int _vgreduce_single(struct cmd_context *cmd, struct volume_group *vg, log_print("Removed \"%s\" from volume group \"%s\"", name, vg->name); r = ECMD_PROCESSED; bad: - unlock_and_release_vg(cmd, orphan_vg, VG_ORPHANS); + unlock_and_free_vg(cmd, orphan_vg, VG_ORPHANS); return r; } @@ -524,7 +524,7 @@ int vgreduce(struct cmd_context *cmd, int argc, char **argv) goto out; } - vg_release(vg); + free_vg(vg); log_verbose("Trying to open VG %s for recovery...", vg_name); vg = vg_read_for_update(cmd, vg_name, NULL, @@ -570,7 +570,7 @@ int vgreduce(struct cmd_context *cmd, int argc, char **argv) } out: init_ignore_suspended_devices(saved_ignore_suspended_devices); - unlock_and_release_vg(cmd, vg, vg_name); + unlock_and_free_vg(cmd, vg, vg_name); return ret; |