Lines Matching refs:newrootvd
4882 vdev_t *oldvd, *newvd, *newrootvd, *pvd, *tvd; in spa_vdev_attach() local
4902 if ((error = spa_config_parse(spa, &newrootvd, nvroot, NULL, 0, in spa_vdev_attach()
4906 if (newrootvd->vdev_children != 1) in spa_vdev_attach()
4907 return (spa_vdev_exit(spa, newrootvd, txg, EINVAL)); in spa_vdev_attach()
4909 newvd = newrootvd->vdev_child[0]; in spa_vdev_attach()
4912 return (spa_vdev_exit(spa, newrootvd, txg, EINVAL)); in spa_vdev_attach()
4914 if ((error = vdev_create(newrootvd, txg, replacing)) != 0) in spa_vdev_attach()
4915 return (spa_vdev_exit(spa, newrootvd, txg, error)); in spa_vdev_attach()
4921 return (spa_vdev_exit(spa, newrootvd, txg, ENOTSUP)); in spa_vdev_attach()
4930 return (spa_vdev_exit(spa, newrootvd, txg, ENOTSUP)); in spa_vdev_attach()
4941 return (spa_vdev_exit(spa, newrootvd, txg, ENOTSUP)); in spa_vdev_attach()
4953 return (spa_vdev_exit(spa, newrootvd, txg, ENOTSUP)); in spa_vdev_attach()
4956 return (spa_vdev_exit(spa, newrootvd, txg, ENOTSUP)); in spa_vdev_attach()
4969 return (spa_vdev_exit(spa, newrootvd, txg, EOVERFLOW)); in spa_vdev_attach()
4976 return (spa_vdev_exit(spa, newrootvd, txg, EDOM)); in spa_vdev_attach()
5011 vdev_remove_child(newrootvd, newvd); in spa_vdev_attach()
5061 (void) spa_vdev_exit(spa, newrootvd, dtl_max_txg, 0); in spa_vdev_attach()