From e56598a84d3fc06e8c5bb54ecd811e626f146885 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Thu, 14 Feb 2002 15:06:24 +0000 Subject: [PATCH] o Initialise the snapshot list properly in vgcreate. --- lib/metadata/metadata.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c index e57f7b0b5..f8a641dec 100644 --- a/lib/metadata/metadata.c +++ b/lib/metadata/metadata.c @@ -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);