summaryrefslogtreecommitdiff
path: root/tools/vgrename.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2012-02-28 18:08:08 +0000
committerAlasdair Kergon <agk@redhat.com>2012-02-28 18:08:08 +0000
commitdc9ef7a028241cf85d62fb1a9fe27927b8e305bd (patch)
treeaf778ca749c3f02c3b4895f72a6e7b4ea5fbabed /tools/vgrename.c
parentebf5552754bdf0d4c04f45bef334799775776ad7 (diff)
downloadlvm2-dc9ef7a028241cf85d62fb1a9fe27927b8e305bd.tar.gz
Check return values after calling new lvmetad fns
(Haven't checked error path handling though)
Diffstat (limited to 'tools/vgrename.c')
-rw-r--r--tools/vgrename.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/vgrename.c b/tools/vgrename.c
index c3e71cefb..acd5da3c2 100644
--- a/tools/vgrename.c
+++ b/tools/vgrename.c
@@ -79,7 +79,9 @@ static int vg_rename_path(struct cmd_context *cmd, const char *old_vg_path,
log_verbose("Checking for existing volume group \"%s\"", vg_name_old);
- lvmetad_vg_list_to_lvmcache(cmd); /* populate lvmcache */
+ /* populate lvmcache */
+ if (!lvmetad_vg_list_to_lvmcache(cmd))
+ stack;
/* Avoid duplicates */
if (!(vgids = get_vgids(cmd, 0)) || dm_list_empty(vgids)) {