Searched refs:newvd (Results 1 - 4 of 4) 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.c6201 vdev_t *oldvd, *newvd, *newrootvd, *pvd, *tvd; local
6238 newvd = newrootvd->vdev_child[0];
6240 if (!newvd->vdev_ops->vdev_op_leaf)
6249 if (oldvd->vdev_top->vdev_islog && newvd->vdev_isspare)
6269 !spa_has_spare(spa, newvd->vdev_guid))
6284 newvd->vdev_isspare != oldvd->vdev_isspare) {
6288 if (newvd->vdev_isspare)
6297 if (newvd->vdev_asize < vdev_get_min_asize(oldvd))
6304 if (newvd->vdev_ashift > oldvd->vdev_top->vdev_ashift)
6309 * to make it distinguishable from newvd, an
7249 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...]
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_pool.c3044 nvlist_t *tgt, *newvd; local
3088 newvd = zpool_find_vdev(zhp, newname, &avail_spare, &l2cache, NULL);
3095 (newvd == NULL || !avail_spare) &&
3105 if (replacing && avail_spare && !vdev_is_online(newvd)) {

Completed in 85 milliseconds