Home
last modified time | relevance | path

Searched refs:newvd (Results 1 – 4 of 4) sorted by relevance

/freebsd/sys/contrib/openzfs/cmd/zed/agents/
H A Dzfs_mod.c200 nvlist_t *nvroot, *newvd; in zfs_process_add() local
540 if (nvlist_alloc(&newvd, NV_UNIQUE_NAME, 0) != 0) { in zfs_process_add()
546 if (nvlist_add_string(newvd, ZPOOL_CONFIG_TYPE, VDEV_TYPE_DISK) != 0 || in zfs_process_add()
547 nvlist_add_string(newvd, ZPOOL_CONFIG_PATH, path) != 0 || in zfs_process_add()
548 nvlist_add_string(newvd, ZPOOL_CONFIG_DEVID, new_devid) != 0 || in zfs_process_add()
549 (physpath != NULL && nvlist_add_string(newvd, in zfs_process_add()
551 (enc_sysfs_path != NULL && nvlist_add_string(newvd, in zfs_process_add()
553 nvlist_add_uint64(newvd, ZPOOL_CONFIG_WHOLE_DISK, wholedisk) != 0 || in zfs_process_add()
556 (const nvlist_t **)&newvd, 1) != 0) { in zfs_process_add()
558 nvlist_free(newvd); in zfs_process_add()
[all …]
/freebsd/cddl/usr.sbin/zfsd/
H A Dcase_file.cc1126 nvlist_t *nvroot, *newvd; in Replace() local
1167 newvd = NULL; in Replace()
1170 || nvlist_alloc(&newvd, NV_UNIQUE_NAME, 0) != 0) { in Replace()
1177 if (nvlist_add_string(newvd, ZPOOL_CONFIG_TYPE, vdev_type) != 0 in Replace()
1178 || nvlist_add_string(newvd, ZPOOL_CONFIG_PATH, path) != 0 in Replace()
1181 &newvd, 1) != 0) { in Replace()
1184 nvlist_free(newvd); in Replace()
1190 nvlist_free(newvd); in Replace()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dspa.c7447 vdev_t *oldvd, *newvd, *newrootvd, *pvd, *tvd; local
7518 newvd = newrootvd->vdev_child[0];
7520 if (!newvd->vdev_ops->vdev_op_leaf)
7530 oldvd->vdev_top->vdev_islog) && newvd->vdev_isspare) {
7537 if (newvd->vdev_ops == &vdev_draid_spare_ops &&
7538 oldvd->vdev_top != vdev_draid_spare_get_parent(newvd)) {
7578 !spa_has_spare(spa, newvd->vdev_guid))
7593 newvd->vdev_isspare != oldvd->vdev_isspare) {
7597 if (newvd->vdev_isspare)
7607 if (newvd->vdev_asize < vdev_get_min_asize(min_vdev))
[all …]
/freebsd/sys/contrib/openzfs/cmd/
H A Dztest.c3710 vdev_t *oldvd, *newvd, *pvd; in ztest_vdev_attach_detach() local
3841 newvd = sav->sav_vdevs[ztest_random(sav->sav_count)]; in ztest_vdev_attach_detach()
3844 if (newvd->vdev_ops == &vdev_draid_spare_ops) in ztest_vdev_attach_detach()
3847 (void) strlcpy(newpath, newvd->vdev_path, MAXPATHLEN); in ztest_vdev_attach_detach()
3854 newvd = vdev_lookup_by_path(rvd, newpath); in ztest_vdev_attach_detach()
3857 if (newvd) { in ztest_vdev_attach_detach()
3861 vdev_reopen(newvd); in ztest_vdev_attach_detach()
3862 newsize = vdev_get_min_asize(newvd); in ztest_vdev_attach_detach()
3892 else if (newvd == oldvd) in ztest_vdev_attach_detach()
3900 else if (newvd_is_dspare && pvd != vdev_draid_spare_get_parent(newvd)) in ztest_vdev_attach_detach()
[all …]