1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +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:
Zdenek Kabelac 2013-04-21 23:53:53 +02:00
parent 994c32272e
commit a12f92c494

View File

@ -217,8 +217,13 @@ static struct volume_group *_format1_vg_read(struct format_instance *fid,
if (!import_extents(fid->fmt->cmd, vg, &pvs)) if (!import_extents(fid->fmt->cmd, vg, &pvs))
goto_bad; 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; goto_bad;
}
vg->fid = NULL;
/* Fix extents counts by adding missing PV if partial VG */ /* Fix extents counts by adding missing PV if partial VG */
if ((vg->status & PARTIAL_VG) && !_fix_partial_vg(vg, &pvs)) if ((vg->status & PARTIAL_VG) && !_fix_partial_vg(vg, &pvs))