From a12f92c494a60fe6e6c9e133aa879bd0d0da069a Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sun, 21 Apr 2013 23:53:53 +0200 Subject: [PATCH] format1: add workaround for vg_set_fid Since we want to set fid just before return of vg, add this termporary workaround. --- lib/format1/format1.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/format1/format1.c b/lib/format1/format1.c index 286422751..115f8d10f 100644 --- a/lib/format1/format1.c +++ b/lib/format1/format1.c @@ -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))