Lines Matching defs:pvd

6202 	vdev_t *oldvd, *newvd, *newrootvd, *pvd, *tvd;
6230 pvd = oldvd->vdev_parent;
6258 if (pvd->vdev_ops != &vdev_mirror_ops &&
6259 pvd->vdev_ops != &vdev_root_ops)
6268 if (pvd->vdev_ops == &vdev_spare_ops &&
6281 if (pvd->vdev_ops == &vdev_replacing_ops &&
6284 } else if (pvd->vdev_ops == &vdev_spare_ops &&
6331 if (pvd->vdev_ops != pvops)
6332 pvd = vdev_add_parent(oldvd, pvops);
6334 ASSERT(pvd->vdev_top->vdev_parent == rvd);
6335 ASSERT(pvd->vdev_ops == pvops);
6336 ASSERT(oldvd->vdev_parent == pvd);
6339 * Extract the new device from its root and add it to pvd.
6342 newvd->vdev_id = pvd->vdev_children;
6344 vdev_add_child(pvd, newvd);
6347 ASSERT(pvd->vdev_top == tvd);
6422 vdev_t *vd, *pvd, *cvd, *tvd;
6460 pvd = vd->vdev_parent;
6475 if (pvd->vdev_guid != pguid && pguid != 0)
6481 if (replace_done && pvd->vdev_ops != &vdev_replacing_ops &&
6482 pvd->vdev_ops != &vdev_spare_ops)
6485 ASSERT(pvd->vdev_ops != &vdev_spare_ops ||
6491 if (pvd->vdev_ops != &vdev_replacing_ops &&
6492 pvd->vdev_ops != &vdev_mirror_ops &&
6493 pvd->vdev_ops != &vdev_spare_ops)
6503 ASSERT(pvd->vdev_children >= 2);
6510 if (pvd->vdev_ops == &vdev_replacing_ops && vd->vdev_id > 0 &&
6514 for (int c = 0; c < pvd->vdev_children; c++) {
6515 cvd = pvd->vdev_child[c];
6534 if (pvd->vdev_ops == &vdev_spare_ops &&
6536 pvd->vdev_child[pvd->vdev_children - 1]->vdev_isspare)
6552 vdev_remove_child(pvd, vd);
6553 vdev_compact_children(pvd);
6558 cvd = pvd->vdev_child[pvd->vdev_children - 1];
6581 if (pvd->vdev_children == 1) {
6582 if (pvd->vdev_ops == &vdev_spare_ops)
7328 vdev_t *vd, *pvd, *ppvd;
7334 pvd = vd->vdev_parent;
7335 ppvd = pvd->vdev_parent;
7337 pguid = pvd->vdev_guid;
7345 if (ppvd->vdev_ops == &vdev_spare_ops && pvd->vdev_id == 0 &&
7347 ASSERT(pvd->vdev_ops == &vdev_replacing_ops);