1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

liblvm: check lvmetad cache return values

Missing error path.
This commit is contained in:
Zdenek Kabelac 2013-07-19 17:31:13 +02:00
parent dedec81d7b
commit baada4316d

View File

@ -362,13 +362,17 @@ int lvm_vg_set_property(const vg_t vg, const char *name,
struct dm_list *lvm_list_vg_names(lvm_t libh)
{
lvmetad_vg_list_to_lvmcache((struct cmd_context *)libh);
if (!lvmetad_vg_list_to_lvmcache((struct cmd_context *)libh))
return NULL;
return get_vgnames((struct cmd_context *)libh, 0);
}
struct dm_list *lvm_list_vg_uuids(lvm_t libh)
{
lvmetad_vg_list_to_lvmcache((struct cmd_context *)libh);
if (!lvmetad_vg_list_to_lvmcache((struct cmd_context *)libh))
return NULL;
return get_vgids((struct cmd_context *)libh, 0);
}