mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
o forgot to init a list head
This commit is contained in:
parent
0db56c6b55
commit
e3de4ba830
@ -163,6 +163,8 @@ static int _vg_write(struct io_space *is, struct volume_group *vg)
|
||||
return 0;
|
||||
}
|
||||
|
||||
INIT_LIST_HEAD(&pvs);
|
||||
|
||||
r = _flatten_vg(mem, vg, &pvs, is->prefix) && write_pvs(&pvs);
|
||||
pool_destroy(mem);
|
||||
return r;
|
||||
|
@ -127,7 +127,7 @@ int export_pv(struct pv_disk *pvd, struct physical_volume *pv)
|
||||
memset(pvd->vg_name, 0, sizeof(pvd->vg_name));
|
||||
|
||||
if (pv->vg_name)
|
||||
strcpy(pvd->vg_name, pv->vg_name);
|
||||
strncpy(pvd->vg_name, pv->vg_name, sizeof(pvd->vg_name));
|
||||
|
||||
//pvd->pv_major = MAJOR(pv->dev);
|
||||
//pvd->pv_number = ??;
|
||||
|
Loading…
Reference in New Issue
Block a user