Lines Matching refs:vdev_parent
117 vdev_t *pvd = vd->vdev_parent;
212 ASSERT(cvd->vdev_parent == NULL);
214 cvd->vdev_parent = pvd;
235 ASSERT(cvd->vdev_top->vdev_parent->vdev_parent == NULL);
240 for (; pvd != NULL; pvd = pvd->vdev_parent)
250 ASSERT(cvd->vdev_parent == pvd);
259 cvd->vdev_parent = NULL;
274 for (; pvd != NULL; pvd = pvd->vdev_parent)
510 if (parent && !parent->vdev_parent &&
526 if (parent && !parent->vdev_parent && alloctype != VDEV_ALLOC_ATTACH) {
646 vdev_remove_child(vd->vdev_parent, vd);
648 ASSERT(vd->vdev_parent == NULL);
779 vdev_t *pvd = cvd->vdev_parent;
811 vdev_t *mvd = cvd->vdev_parent;
812 vdev_t *pvd = mvd->vdev_parent;
1262 if (vd->vdev_parent != NULL && osize < SPA_MINDEVSIZE -
1485 vdev_t *pvd = vd->vdev_parent;
2464 for (pvd = vd; pvd != rvd; pvd = pvd->vdev_parent)
2472 for (pvd = vd; pvd != rvd; pvd = pvd->vdev_parent)
2479 !vdev_is_dead(vd) && vd->vdev_parent &&
2480 vd->vdev_parent->vdev_ops == &vdev_spare_ops &&
2481 vd->vdev_parent->vdev_child[0] == vd)
2664 if (!vdev_is_dead(vd) && vd->vdev_parent != NULL &&
2665 vd->vdev_parent->vdev_ops == &vdev_spare_ops &&
2666 vd->vdev_parent->vdev_child[0] == vd)
2936 for (pvd = vd; pvd != rvd; pvd = pvd->vdev_parent)
2987 ASSERT(rvd == vd->vdev_parent);
3182 if (vd->vdev_parent)
3183 vdev_propagate_state(vd->vdev_parent);
3317 if (!isopen && vd->vdev_parent)
3318 vdev_propagate_state(vd->vdev_parent);
3416 vdev_t *cvd, *pvd = vd->vdev_parent;