Searched defs:newvd (Results 1 - 3 of 3) sorted by relevance
/illumos-gate/usr/src/cmd/syseventd/modules/zfs_mod/ |
H A D | zfs_mod.c | 153 nvlist_t *nvroot, *newvd; local 238 if (nvlist_alloc(&newvd, NV_UNIQUE_NAME, 0) != 0) { 243 if (nvlist_add_string(newvd, ZPOOL_CONFIG_TYPE, VDEV_TYPE_DISK) != 0 || 244 nvlist_add_string(newvd, ZPOOL_CONFIG_PATH, path) != 0 || 245 (physpath != NULL && nvlist_add_string(newvd, 247 nvlist_add_uint64(newvd, ZPOOL_CONFIG_WHOLE_DISK, wholedisk) != 0 || 249 nvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, &newvd, 251 nvlist_free(newvd); 256 nvlist_free(newvd);
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | spa.c | 4589 vdev_t *oldvd, *newvd, *newrootvd, *pvd, *tvd; local 4616 newvd = newrootvd->vdev_child[0]; 4618 if (!newvd->vdev_ops->vdev_op_leaf) 4627 if (oldvd->vdev_top->vdev_islog && newvd->vdev_isspare) 4647 !spa_has_spare(spa, newvd->vdev_guid)) 4662 newvd->vdev_isspare != oldvd->vdev_isspare) { 4666 if (newvd->vdev_isspare) 4675 if (newvd->vdev_asize < vdev_get_min_asize(oldvd)) 4682 if (newvd->vdev_ashift > oldvd->vdev_top->vdev_ashift) 4687 * to make it distinguishable from newvd, an 5574 vdev_t *newvd, *oldvd; local [all...] |
/illumos-gate/usr/src/cmd/ztest/ |
H A D | ztest.c | 2755 vdev_t *oldvd, *newvd, *pvd; local 2839 newvd = sav->sav_vdevs[ztest_random(sav->sav_count)]; 2841 (void) strcpy(newpath, newvd->vdev_path); 2848 newvd = vdev_lookup_by_path(rvd, newpath); 2851 if (newvd) { 2852 newsize = vdev_get_min_asize(newvd); 2867 * If newvd is already part of the pool, it should fail with EBUSY. 2869 * If newvd is too small, it should fail with EOVERFLOW. 2878 else if (newvd == oldvd) 2894 root = make_vdev_root(newpath, NULL, NULL, newvd [all...] |
Completed in 212 milliseconds