Lines Matching defs:vg
29 struct volume_group *vg,
42 struct volume_group *old_vg = vg;
63 vg = vg_read_for_update(cmd, vg_name, NULL, 0);
65 if (vg_read_error(vg))
68 if (!(pvl = find_pv_in_vg(vg, pv_name))) {
70 pv_name, vg->name);
78 pv_name, vg->name);
84 if (!archive(vg))
129 if (vg) {
131 new_pe_count = pv_size(pv) / vg->extent_size;
141 if (!pv_resize(pv, vg, new_pe_count))
150 if (!vg_write(vg) || !vg_commit(vg)) {
152 "volume group \"%s\"", pv_name, vg->name);
155 backup(vg);
168 vg_release(vg);
173 struct volume_group *vg,
181 if (!_pv_resize_single(cmd, vg, pv, params->new_size)) {