Lines Matching defs:vg_to
315 int move_pv(struct volume_group *vg_from, struct volume_group *vg_to,
329 _vg_bad_status_bits(vg_to, RESIZEABLE_VG))
332 dm_list_move(&vg_to->pvs, &pvl->list);
335 vg_to->pv_count++;
340 vg_to->extent_count += pv_pe_count(pv);
343 vg_to->free_count += pv_pe_count(pv) - pv_pe_alloc_count(pv);
349 struct volume_group *vg_to,
365 _vg_bad_status_bits(vg_to, RESIZEABLE_VG))
370 if (!move_pvs_used_by_lv(vg_from, vg_to,
375 if (!move_pv(vg_from, vg_to,
380 if (!move_pvs_used_by_lv(vg_from, vg_to,
1158 struct volume_group *vg_from, struct volume_group *vg_to)
1165 mdas_to = &vg_to->fid->metadata_areas;
1174 if (is_orphan_vg(vg_to->name))
1182 (!is_orphan_vg(vg_to->name) && dm_list_empty(mdas_to)))
1814 struct volume_group *vg_to)
1827 if (vg_to->extent_size != vg_from->extent_size) {
1829 vg_to->extent_size, vg_to->name,
1834 if (vg_to->max_pv &&
1835 (vg_to->max_pv < vg_to->pv_count + vg_from->pv_count)) {
1837 " for \"%s\" and \"%s\"", vg_to->max_pv, vg_to->name,
1842 if (vg_to->max_lv &&
1843 (vg_to->max_lv < vg_visible_lvs(vg_to) + vg_visible_lvs(vg_from))) {
1845 " for \"%s\" and \"%s\"", vg_to->max_lv, vg_to->name,
1851 if (vg_to->fid->fmt != vg_from->fid->fmt) {
1853 vg_to->name, vg_from->name);
1858 if (vg_is_clustered(vg_to) != vg_is_clustered(vg_from)) {
1860 vg_to->name, vg_from->name);
1865 dm_list_iterate_items(lvl1, &vg_to->lvs) {
1875 name1, vg_to->name, vg_from->name);
1882 dm_list_iterate_items(pvl, &vg_to->pvs) {
1892 if (pv_uses_vg(pvl->pv, vg_to)) {
1895 pv_dev_name(pvl->pv), vg_to->name);