mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-12 08:13:48 +03:00
format1: add workaround for vg_set_fid
Since we want to set fid just before return of vg, add this termporary workaround.
This commit is contained in:
parent
994c32272e
commit
a12f92c494
@ -217,8 +217,13 @@ static struct volume_group *_format1_vg_read(struct format_instance *fid,
|
||||
if (!import_extents(fid->fmt->cmd, vg, &pvs))
|
||||
goto_bad;
|
||||
|
||||
if (!import_snapshots(vg->vgmem, vg, &pvs))
|
||||
/* FIXME: workaround - temporary assignment of fid */
|
||||
vg->fid = fid;
|
||||
if (!import_snapshots(vg->vgmem, vg, &pvs)) {
|
||||
vg->fid = NULL;
|
||||
goto_bad;
|
||||
}
|
||||
vg->fid = NULL;
|
||||
|
||||
/* Fix extents counts by adding missing PV if partial VG */
|
||||
if ((vg->status & PARTIAL_VG) && !_fix_partial_vg(vg, &pvs))
|
||||
|
Loading…
Reference in New Issue
Block a user