1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
This commit is contained in:
Alasdair Kergon 2006-04-11 19:09:55 +00:00
parent f084e627cc
commit 5dbc1f263a
2 changed files with 3 additions and 4 deletions

View File

@ -235,7 +235,7 @@ int lvmcache_label_scan(struct cmd_context *cmd, int full_scan)
struct list *lvmcache_get_vgnames(struct cmd_context *cmd, int full_scan)
{
struct list *vgnames;
struct lvmcache_vginfo *vgi;
struct lvmcache_vginfo *vginfo;
lvmcache_label_scan(cmd, full_scan);
@ -244,9 +244,9 @@ struct list *lvmcache_get_vgnames(struct cmd_context *cmd, int full_scan)
return NULL;
}
list_iterate_items(vgi, &_vginfos) {
list_iterate_items(vginfo, &_vginfos) {
if (!str_list_add(cmd->mem, vgnames,
dm_pool_strdup(cmd->mem, vgi->vgname))) {
dm_pool_strdup(cmd->mem, vginfo->vgname))) {
log_error("strlist allocation failed");
return NULL;
}

View File

@ -1577,7 +1577,6 @@ static struct format_instance *_create_text_instance(const struct format_type
out:
return fid;
}
void *create_text_context(struct cmd_context *cmd, const char *path,