Home | History | Annotate | Download | only in metadata

Lines Matching refs:pvl

155 	struct pv_list *pvl;
162 if (!(pvl = dm_pool_zalloc(mem, sizeof(*pvl)))) {
225 pvl->pv = pv;
226 dm_list_add(&vg->pvs, &pvl->list);
286 struct pv_list *pvl;
299 dm_list_iterate_items(pvl, &vg->pvs) {
300 if (id_equal(&pvl->pv->id, (const struct id *) pvid)) {
301 if (!_copy_pv(fmt->cmd->mem, pv, pvl->pv)) {
319 struct pv_list *pvl;
322 if (!(pvl = find_pv_in_vg(vg_from, pv_name))) {
332 dm_list_move(&vg_to->pvs, &pvl->list);
337 pv = pvl->pv;
440 struct pv_list *pvl;
447 dm_list_iterate_items(pvl, &vg->pvs) {
448 if (!(pvl->pv->vg_name = dm_pool_strdup(mem, new_name))) {
450 pv_dev_name(pvl->pv));
477 struct pv_list *pvl, *tpvl;
501 dm_list_iterate_items_safe(pvl, tpvl, &vg->pvs) {
502 dm_list_del(&pvl->list);
503 dm_list_add(&vg->removed_pvs, &pvl->list);
511 struct pv_list *pvl;
526 dm_list_iterate_items(pvl, &vg->removed_pvs) {
527 pv = pvl->pv;
626 struct pv_list *pvl;
635 if (!(pvl = find_pv_in_vg(vg, pv_name))) {
641 pv = pvl->pv;
659 dm_list_del(&pvl->list);
660 dm_list_add(&vg->removed_pvs, &pvl->list);
918 struct pv_list *pvl;
968 dm_list_iterate_items(pvl, &vg->pvs) {
969 pv = pvl->pv;
1575 struct pv_list *pvl;
1577 dm_list_iterate_items(pvl, &vg->pvs)
1578 if (pvl->pv->dev == dev_cache_get(pv_name, vg->cmd->filter))
1579 return pvl;
1587 struct pv_list *pvl;
1589 dm_list_iterate_items(pvl, pl)
1590 if (pvl->pv == pv)
1591 return pvl;
1598 struct pv_list *pvl;
1600 dm_list_iterate_items(pvl, &vg->pvs)
1601 if (pv == pvl->pv)
1629 struct pv_list *pvl;
1631 dm_list_iterate_items(pvl, &vg->pvs)
1632 if (id_equal(&pvl->pv->id, id))
1633 return pvl->pv;
1690 struct pv_list *pvl;
1692 dm_list_iterate_items(pvl, &vg->pvs)
1693 if (dev == pvl->pv->dev)
1694 return pvl->pv;
1817 struct pv_list *pvl;
1882 dm_list_iterate_items(pvl, &vg_to->pvs) {
1883 if (pv_uses_vg(pvl->pv, vg_from)) {
1886 pv_dev_name(pvl->pv), vg_from->name);
1891 dm_list_iterate_items(pvl, &vg_from->pvs) {
1892 if (pv_uses_vg(pvl->pv, vg_to)) {
1895 pv_dev_name(pvl->pv), vg_to->name);
2095 struct pv_list *pvl, *pvl2;
2103 dm_list_iterate_items(pvl, &vg->pvs) {
2105 if (pvl == pvl2)
2107 if (id_equal(&pvl->pv->id,
2109 if (!id_write_format(&pvl->pv->id, uuid,
2114 uuid, pv_dev_name(pvl->pv),
2120 if (strcmp(pvl->pv->vg_name, vg->name)) {
2122 pv_dev_name(pvl->pv));
2370 struct pv_list *pvl;
2410 if (!(pvl = dm_pool_zalloc(mem, sizeof(*pvl)))) {
2414 pvl->pv = pv;
2415 dm_list_add(&vg->pvs, &pvl->list);
2427 struct pv_list *pvl, *pvl2;
2429 dm_list_iterate_items(pvl, &vg->pvs) {
2431 if (pvl->pv->dev == pvl2->pv->dev)
2438 if (!(pvl2 = _copy_pvl(pvmem, pvl))) {
2440 pv_dev_name(pvl->pv));
2454 struct pv_list *pvl;
2455 dm_list_iterate_items(pvl, &vg->pvs) {
2456 if (pvl->pv->status & MISSING_PV)
2489 struct pv_list *pvl, *pvl2;
2579 dm_list_iterate_items(pvl, &correct_vg->pvs) {
2580 if (!pvl->pv->dev) {
2585 if (str_list_match_item(pvids, pvl->pv->dev->pvid))
2592 if (!(info = info_from_pvid(pvl->pv->dev->pvid, 1)) ||
2622 } else dm_list_iterate_items(pvl, &correct_vg->pvs) {
2623 if (pvl->pv->status & MISSING_PV)
2625 if (!str_list_match_item(pvids, pvl->pv->dev->pvid)) {
2745 dm_list_iterate_items(pvl, &all_pvs) {
2747 if (pvl->pv->dev == pvl2->pv->dev)
2750 if (!id_write_format(&pvl->pv->id, uuid, sizeof(uuid))) {
2755 pv_dev_name(pvl->pv), uuid, correct_vg->name);
2756 if (!pv_write_orphan(cmd, pvl->pv)) {
3014 struct pv_list *pvl, *pvl_copy;
3060 dm_list_iterate_items(pvl, &vg->pvs) {
3061 if (!(pvl_copy = _copy_pvl(cmd->mem, pvl))) {