Lines Matching defs:pvd

6137 	vdev_t *oldvd, *newvd, *newrootvd, *pvd, *tvd;
6165 pvd = oldvd->vdev_parent;
6193 if (pvd->vdev_ops != &vdev_mirror_ops &&
6194 pvd->vdev_ops != &vdev_root_ops)
6203 if (pvd->vdev_ops == &vdev_spare_ops &&
6216 if (pvd->vdev_ops == &vdev_replacing_ops &&
6219 } else if (pvd->vdev_ops == &vdev_spare_ops &&
6266 if (pvd->vdev_ops != pvops)
6267 pvd = vdev_add_parent(oldvd, pvops);
6269 ASSERT(pvd->vdev_top->vdev_parent == rvd);
6270 ASSERT(pvd->vdev_ops == pvops);
6271 ASSERT(oldvd->vdev_parent == pvd);
6274 * Extract the new device from its root and add it to pvd.
6277 newvd->vdev_id = pvd->vdev_children;
6279 vdev_add_child(pvd, newvd);
6282 ASSERT(pvd->vdev_top == tvd);
6357 vdev_t *vd, *pvd, *cvd, *tvd;
6395 pvd = vd->vdev_parent;
6410 if (pvd->vdev_guid != pguid && pguid != 0)
6416 if (replace_done && pvd->vdev_ops != &vdev_replacing_ops &&
6417 pvd->vdev_ops != &vdev_spare_ops)
6420 ASSERT(pvd->vdev_ops != &vdev_spare_ops ||
6426 if (pvd->vdev_ops != &vdev_replacing_ops &&
6427 pvd->vdev_ops != &vdev_mirror_ops &&
6428 pvd->vdev_ops != &vdev_spare_ops)
6438 ASSERT(pvd->vdev_children >= 2);
6445 if (pvd->vdev_ops == &vdev_replacing_ops && vd->vdev_id > 0 &&
6449 for (int c = 0; c < pvd->vdev_children; c++) {
6450 cvd = pvd->vdev_child[c];
6469 if (pvd->vdev_ops == &vdev_spare_ops &&
6471 pvd->vdev_child[pvd->vdev_children - 1]->vdev_isspare)
6487 vdev_remove_child(pvd, vd);
6488 vdev_compact_children(pvd);
6493 cvd = pvd->vdev_child[pvd->vdev_children - 1];
6516 if (pvd->vdev_children == 1) {
6517 if (pvd->vdev_ops == &vdev_spare_ops)
7263 vdev_t *vd, *pvd, *ppvd;
7269 pvd = vd->vdev_parent;
7270 ppvd = pvd->vdev_parent;
7272 pguid = pvd->vdev_guid;
7280 if (ppvd->vdev_ops == &vdev_spare_ops && pvd->vdev_id == 0 &&
7282 ASSERT(pvd->vdev_ops == &vdev_replacing_ops);