Lines Matching refs:pvd
3710 vdev_t *oldvd, *newvd, *pvd; in ztest_vdev_attach_detach() local
3812 pvd = oldvd->vdev_parent; in ztest_vdev_attach_detach()
3813 pguid = pvd->vdev_guid; in ztest_vdev_attach_detach()
3884 if (pvd->vdev_ops != &vdev_mirror_ops && in ztest_vdev_attach_detach()
3885 pvd->vdev_ops != &vdev_root_ops && (!replacing || in ztest_vdev_attach_detach()
3886 pvd->vdev_ops == &vdev_replacing_ops || in ztest_vdev_attach_detach()
3887 pvd->vdev_ops == &vdev_spare_ops)) in ztest_vdev_attach_detach()
3900 else if (newvd_is_dspare && pvd != vdev_draid_spare_get_parent(newvd)) in ztest_vdev_attach_detach()
3917 if (pvd->vdev_ops == &vdev_mirror_ops || in ztest_vdev_attach_detach()
3918 pvd->vdev_ops == &vdev_root_ops) { in ztest_vdev_attach_detach()
4077 vdev_t *newvd, *pvd; in ztest_vdev_raidz_attach() local
4102 pvd = vdev_lookup_top(spa, 0); in ztest_vdev_raidz_attach()
4104 ASSERT(pvd->vdev_ops == &vdev_raidz_ops); in ztest_vdev_raidz_attach()
4110 newvd = pvd->vdev_child[ztest_random(pvd->vdev_children)]; in ztest_vdev_raidz_attach()
4150 error = spa_vdev_attach(spa, pvd->vdev_guid, root, B_FALSE, B_FALSE); in ztest_vdev_raidz_attach()