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:
parent
0d3075f5ba
commit
e56598a84d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user