1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

o Initialise the snapshot list properly in vgcreate.

This commit is contained in:
Joe Thornber 2002-02-14 15:06:24 +00:00
parent 0d3075f5ba
commit e56598a84d

View File

@ -170,6 +170,9 @@ struct volume_group *vg_create(struct format_instance *fi, const char *vg_name,
vg->lv_count = 0;
list_init(&vg->lvs);
vg->snapshot_count = 0;
list_init(&vg->snapshots);
if (!fi->ops->vg_setup(fi, vg)) {
log_error("Format specific setup of volume group '%s' failed.",
vg_name);