mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-05 13:18:20 +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;
|
vg->lv_count = 0;
|
||||||
list_init(&vg->lvs);
|
list_init(&vg->lvs);
|
||||||
|
|
||||||
|
vg->snapshot_count = 0;
|
||||||
|
list_init(&vg->snapshots);
|
||||||
|
|
||||||
if (!fi->ops->vg_setup(fi, vg)) {
|
if (!fi->ops->vg_setup(fi, vg)) {
|
||||||
log_error("Format specific setup of volume group '%s' failed.",
|
log_error("Format specific setup of volume group '%s' failed.",
|
||||||
vg_name);
|
vg_name);
|
||||||
|
Loading…
Reference in New Issue
Block a user