summaryrefslogtreecommitdiff
path: root/lib/format_pool
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2011-03-11 14:50:13 +0000
committerPeter Rajnoha <prajnoha@redhat.com>2011-03-11 14:50:13 +0000
commit1307ddf4cfefd68b2fea4a3b6551777f1d2b9b25 (patch)
tree82bc0438850ffe1830fb1ee412ea8a240ffa54d5 /lib/format_pool
parent293481107f88d34d3e3bacadd12ffc2a5c83139a (diff)
downloadlvm2-1307ddf4cfefd68b2fea4a3b6551777f1d2b9b25.tar.gz
Use only vg_set_fid and new pv_set_fid fn to assign the format instance.
This is essential for proper format instance ref_count support. We must use these functions to set the fid everywhere from now on, even the NULL value!
Diffstat (limited to 'lib/format_pool')
-rw-r--r--lib/format_pool/format_pool.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/format_pool/format_pool.c b/lib/format_pool/format_pool.c
index 6f52d661e..c525c696f 100644
--- a/lib/format_pool/format_pool.c
+++ b/lib/format_pool/format_pool.c
@@ -120,7 +120,8 @@ static struct volume_group *_pool_vg_read(struct format_instance *fid,
if (!read_pool_pds(fid->fmt, vg_name, vg->vgmem, &pds))
goto_bad;
- vg->fid = fid;
+ vg_set_fid(vg, fid);
+
/* Setting pool seqno to 1 because the code always did this,
* although we don't think it's needed. */
vg->seqno = 1;