Searched refs:newvd (Results 1 - 3 of 3) sorted by relevance

/illumos-gate/usr/src/cmd/syseventd/modules/zfs_mod/
H A Dzfs_mod.c153 nvlist_t *nvroot, *newvd; local
247 if (nvlist_alloc(&newvd, NV_UNIQUE_NAME, 0) != 0) {
252 if (nvlist_add_string(newvd, ZPOOL_CONFIG_TYPE, VDEV_TYPE_DISK) != 0 ||
253 nvlist_add_string(newvd, ZPOOL_CONFIG_PATH, path) != 0 ||
254 (physpath != NULL && nvlist_add_string(newvd,
256 nvlist_add_uint64(newvd, ZPOOL_CONFIG_WHOLE_DISK, wholedisk) != 0 ||
258 nvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, &newvd,
260 nvlist_free(newvd);
265 nvlist_free(newvd);
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dspa.c6137 vdev_t *oldvd, *newvd, *newrootvd, *pvd, *tvd; local
6174 newvd = newrootvd->vdev_child[0];
6176 if (!newvd->vdev_ops->vdev_op_leaf)
6185 if (oldvd->vdev_top->vdev_islog && newvd->vdev_isspare)
6205 !spa_has_spare(spa, newvd->vdev_guid))
6220 newvd->vdev_isspare != oldvd->vdev_isspare) {
6224 if (newvd->vdev_isspare)
6233 if (newvd->vdev_asize < vdev_get_min_asize(oldvd))
6240 if (newvd->vdev_ashift > oldvd->vdev_top->vdev_ashift)
6245 * to make it distinguishable from newvd, an
7185 vdev_t *newvd, *oldvd; local
[all...]
/illumos-gate/usr/src/cmd/ztest/
H A Dztest.c3212 vdev_t *oldvd, *newvd, *pvd; local
3316 newvd = sav->sav_vdevs[ztest_random(sav->sav_count)];
3318 (void) strcpy(newpath, newvd->vdev_path);
3325 newvd = vdev_lookup_by_path(rvd, newpath);
3328 if (newvd) {
3332 vdev_reopen(newvd);
3333 newsize = vdev_get_min_asize(newvd);
3348 * If newvd is already part of the pool, it should fail with EBUSY.
3350 * If newvd is too small, it should fail with EOVERFLOW.
3359 else if (newvd
[all...]

Completed in 179 milliseconds