1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-10-25 03:33:16 +03:00

Rename vg_release to free_vg.

This commit is contained in:
Alasdair Kergon
2010-12-08 20:50:48 +00:00
parent e8bed35ddf
commit 2b82bd79f5
30 changed files with 139 additions and 137 deletions

View File

@@ -857,7 +857,7 @@ static struct volume_group *_vg_read_file_name(struct format_instance *fid,
* check that it contains the correct volume group.
*/
if (vgname && strcmp(vgname, vg->name)) {
dm_pool_destroy(vg->vgmem);
free_vg(vg);
log_error("'%s' does not contain volume group '%s'.",
read_path, vgname);
return NULL;
@@ -1085,7 +1085,7 @@ static int _scan_file(const struct format_type *fmt)
path))) {
/* FIXME Store creation host in vg */
lvmcache_update_vg(vg, 0);
dm_pool_destroy(vg->vgmem);
free_vg(vg);
}
}