Lines Matching defs:vg
108 struct volume_group *vg = NULL;
112 if (!(vg = dm_pool_zalloc(smem, sizeof(*vg)))) {
117 vg->cmd = fid->fmt->cmd;
118 vg->vgmem = mem;
119 vg->fid = fid;
120 vg->name = NULL;
121 vg->status = 0;
122 vg->extent_count = 0;
123 vg->pv_count = 0;
124 vg->seqno = 1;
125 vg->system_id = NULL;
126 dm_list_init(&vg->pvs);
127 dm_list_init(&vg->lvs);
128 dm_list_init(&vg->tags);
129 dm_list_init(&vg->removed_pvs);
131 if (!import_pool_vg(vg, smem, pds))
134 if (!import_pool_pvs(fid->fmt, vg, &vg->pvs, smem, pds))
137 if (!import_pool_lvs(vg, smem, pds))
152 if (!_check_usp(vg->name, usp, sp_count))
155 if (!import_pool_segments(&vg->lvs, smem, usp, sp_count))
158 return vg;
167 struct volume_group *vg = NULL;
179 /* Read all the pvs in the vg */
183 /* Do the rest of the vg stuff */
184 if (!(vg = _build_vg_from_pds(fid, mem, &pds)))
187 return vg;
203 struct volume_group *vg __attribute((unused)))