/illumos-gate/usr/src/cmd/fm/schemes/zfs/ |
H A D | scheme.c | 134 nvlist_t *config, *nvroot; local 138 (void) nvlist_lookup_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, &nvroot); 140 return (find_vdev_iter(nvroot, guid));
|
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_status.c | 187 nvlist_t *nvroot; local 200 &nvroot) == 0); 201 verify(nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_VDEV_STATS, 209 (void) nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_SCAN_STATS, 273 find_vdev_problem(nvroot, vdev_faulted)) 277 find_vdev_problem(nvroot, vdev_missing)) 281 find_vdev_problem(nvroot, vdev_broken)) 303 if (find_vdev_problem(nvroot, vdev_faulted)) 305 if (find_vdev_problem(nvroot, vdev_missing)) 307 if (find_vdev_problem(nvroot, vdev_broke [all...] |
H A D | libzfs_import.c | 441 nvlist_t *ret = NULL, *config = NULL, *tmp = NULL, *nvtop, *nvroot; local 708 if (nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) != 0) 710 if (nvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE, 712 nvlist_add_uint64(nvroot, ZPOOL_CONFIG_ID, 0ULL) != 0 || 713 nvlist_add_uint64(nvroot, ZPOOL_CONFIG_GUID, guid) != 0 || 714 nvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, 716 nvlist_free(nvroot); 730 if (fix_paths(nvroot, pl->names) != 0) { 731 nvlist_free(nvroot); 739 nvroot) ! 1499 nvlist_t *nvroot; local 1607 nvlist_t *nvroot; local [all...] |
H A D | libzfs_pool.c | 250 nvlist_t *nvroot; local 350 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0); 351 verify(nvlist_lookup_uint64_array(nvroot, 1099 zpool_create(libzfs_handle_t *hdl, const char *pool, nvlist_t *nvroot, argument 1114 if (zcmd_write_conf_nvlist(hdl, &zc, nvroot) != 0) 1275 zpool_add(zpool_handle_t *zhp, nvlist_t *nvroot) argument 1289 nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, 1298 nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_L2CACHE, 1305 if (zcmd_write_conf_nvlist(hdl, &zc, nvroot) != 0) 1868 nvlist_t *nvroot; local 2128 nvlist_t *search, *nvroot, *ret; local 2164 nvlist_t *nvroot, *search, *ret; local 2598 zpool_vdev_attach(zpool_handle_t *zhp, const char *old_disk, const char *new_disk, nvlist_t *nvroot, int replacing) argument 3891 nvlist_t *nvroot; local 4016 nvlist_t *config, *nvroot; local [all...] |
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | spa_config.c | 355 nvlist_t *config, *nvroot; local 447 nvroot = vdev_config_generate(spa, vd, getstats, config_gen_flags); 448 fnvlist_add_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, nvroot); 449 nvlist_free(nvroot);
|
H A D | spa.c | 2227 nvlist_t *nvroot = NULL; local 2248 if (nvlist_lookup_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, &nvroot)) 2271 error = spa_config_parse(spa, &rvd, nvroot, NULL, 0, parse); 3208 nvlist_t *nvroot; local 3220 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0); 3224 VERIFY(nvlist_add_nvlist_array(nvroot, 3226 VERIFY(nvlist_lookup_nvlist_array(nvroot, 3257 nvlist_t *nvroot; local 3269 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0); 3273 VERIFY(nvlist_add_nvlist_array(nvroot, 3420 spa_validate_aux_devs(spa_t *spa, nvlist_t *nvroot, uint64_t crtxg, int mode, spa_aux_vdev_t *sav, const char *config, uint64_t version, vdev_labeltype_t label) argument 3501 spa_validate_aux(spa_t *spa, nvlist_t *nvroot, uint64_t crtxg, int mode) argument 3590 spa_create(const char *pool, nvlist_t *nvroot, nvlist_t *props, nvlist_t *zplprops) argument 3849 nvlist_t *nvtop, *nvroot; local 4054 nvlist_t *nvroot; local 4472 spa_vdev_add(spa_t *spa, nvlist_t *nvroot) argument 4585 spa_vdev_attach(spa_t *spa, uint64_t guid, nvlist_t *nvroot, int replacing) argument 6078 nvlist_t *nvroot; local [all...] |
/illumos-gate/usr/src/lib/libzpool/common/ |
H A D | util.c | 142 nvlist_t *config, *nvroot; local 148 &nvroot) == 0); 152 show_vdev_stats(name, ZPOOL_CONFIG_CHILDREN, nvroot, 0); 153 show_vdev_stats(NULL, ZPOOL_CONFIG_L2CACHE, nvroot, 0); 154 show_vdev_stats(NULL, ZPOOL_CONFIG_SPARES, nvroot, 0);
|
/illumos-gate/usr/src/cmd/fm/modules/common/zfs-retire/ |
H A D | zfs_retire.c | 145 nvlist_t *config, *nvroot; local 157 &nvroot) != 0) { 163 if ((*vdevp = find_vdev(zhdl, nvroot, NULL, 178 nvlist_t *nvroot; local 182 &nvroot) != 0) { 187 if ((cbp->cb_vdev = find_vdev(zpool_get_handle(zhp), nvroot, 221 nvlist_t *config, *nvroot, *replacement; local 228 &nvroot) != 0) 234 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES,
|
/illumos-gate/usr/src/cmd/syseventd/modules/zfs_mod/ |
H A D | zfs_mod.c | 108 nvlist_t *nvroot; local 113 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0); 114 verify(nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_VDEV_STATS, 153 nvlist_t *nvroot, *newvd; local 235 if (nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) != 0) 239 nvlist_free(nvroot); 248 nvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE, VDEV_TYPE_ROOT) != 0 || 249 nvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, &newvd, 252 nvlist_free(nvroot); 258 (void) zpool_vdev_attach(zhp, fullpath, path, nvroot, B_TRU [all...] |
/illumos-gate/usr/src/cmd/zpool/ |
H A D | zpool_vdev.c | 543 get_replication(nvlist_t *nvroot, boolean_t fatal) argument 558 verify(nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, 806 nvlist_t *nvroot; local 809 &nvroot) == 0); 810 if ((current = get_replication(nvroot, B_FALSE)) == NULL) 990 nvlist_t *nvroot; local 1013 &nvroot) == 0); 1014 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, 1163 nvlist_t *nvroot, *nv, **top, **spares, **l2cache; local 1335 * Finally, create nvroot an [all...] |
H A D | zpool_main.c | 497 nvlist_t *nvroot; local 548 nvroot = make_root_vdev(zhp, force, !force, B_FALSE, dryrun, 550 if (nvroot == NULL) { 566 print_vdev_tree(zhp, NULL, nvroot, 0, B_FALSE); 571 print_vdev_tree(zhp, NULL, nvroot, 0, B_TRUE); 572 } else if (num_logs(nvroot) > 0) { 573 print_vdev_tree(zhp, "logs", nvroot, 0, B_TRUE); 578 ret = (zpool_add(zhp, nvroot) != 0); 581 nvlist_free(nvroot); 797 nvlist_t *nvroot local 1301 nvlist_t *config, *nvroot; local 1610 nvlist_t *nvroot; local 2533 nvlist_t *config, *nvroot; local 3057 nvlist_t *nvroot; local 3183 nvlist_t *nvroot; local 4115 nvlist_t *config, *nvroot; local [all...] |
/illumos-gate/usr/src/cmd/power/ |
H A D | handlers.c | 1006 nvlist_t *config, *nvroot; local 1034 &nvroot) != 0) { 1039 verify(nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN,
|
/illumos-gate/usr/src/cmd/ztest/ |
H A D | ztest.c | 2355 nvlist_t *nvroot; local 2360 nvroot = make_vdev_root("/dev/bogus", NULL, NULL, 0, 0, 0, 0, 0, 1); 2362 spa_create("ztest_bad_file", nvroot, NULL, NULL)); 2363 nvlist_free(nvroot); 2368 nvroot = make_vdev_root("/dev/bogus", NULL, NULL, 0, 0, 0, 0, 2, 1); 2370 spa_create("ztest_bad_mirror", nvroot, NULL, NULL)); 2371 nvlist_free(nvroot); 2375 * what's in the nvroot; we should fail with EEXIST. 2378 nvroot = make_vdev_root("/dev/bogus", NULL, NULL, 0, 0, 0, 0, 0, 1); 2379 VERIFY3U(EEXIST, ==, spa_create(zo->zo_pool, nvroot, NUL 2395 nvlist_t *nvroot, *props; local 2507 nvlist_t *nvroot; local 2625 nvlist_t *nvroot = make_vdev_root(NULL, aux, NULL, local 5967 nvlist_t *nvroot, *props; local [all...] |