Lines Matching refs:nvroot
518 nvlist_t *config, *nvroot, *parent_config; in ActivateSpare() local
538 error = nvlist_lookup_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, &nvroot); in ActivateSpare()
545 parent_config = find_parent(config, nvroot, m_vdevGUID); in ActivateSpare()
561 nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, &spares, in ActivateSpare()
1126 nvlist_t *nvroot, *newvd; in Replace() local
1166 nvroot = NULL; in Replace()
1169 if (nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) != 0 in Replace()
1173 if (nvroot != NULL) in Replace()
1174 nvlist_free(nvroot); in Replace()
1179 || nvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE, VDEV_TYPE_ROOT) != 0 in Replace()
1180 || nvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, in Replace()
1185 nvlist_free(nvroot); in Replace()
1192 retval = (zpool_vdev_attach(zhp, oldstr.c_str(), path, nvroot, in Replace()
1201 nvlist_free(nvroot); in Replace()