/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_status.c | 204 nvlist_t *nvroot; in check_status() local 219 &nvroot) == 0); in check_status() 318 find_vdev_problem(nvroot, vdev_faulted)) in check_status() 322 find_vdev_problem(nvroot, vdev_missing)) in check_status() 326 find_vdev_problem(nvroot, vdev_broken)) in check_status() 348 if (find_vdev_problem(nvroot, vdev_faulted)) in check_status() 350 if (find_vdev_problem(nvroot, vdev_missing)) in check_status() 352 if (find_vdev_problem(nvroot, vdev_broken)) in check_status() 358 if (!isimport && find_vdev_problem(nvroot, vdev_errors)) in check_status() 364 if (find_vdev_problem(nvroot, vdev_offlined)) in check_status() [all …]
|
H A D | libzfs_import.c | 296 nvlist_t *nvroot; in find_aux() local 299 &nvroot) == 0); in find_aux() 301 if (nvlist_lookup_nvlist_array(nvroot, cbp->cb_type, in find_aux() 404 nvlist_t *nvroot; in zpool_in_use() local 407 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0); in zpool_in_use() 408 ret = find_guid(nvroot, vdev_guid); in zpool_in_use()
|
H A D | libzfs_pool.c | 259 nvlist_t *nvroot; in zpool_get_prop() local 1163 zpool_has_special_vdev(nvlist_t *nvroot) in zpool_has_special_vdev() argument 1234 !zpool_has_special_vdev(nvroot)) { in zpool_create() 2142 nvlist_t *nvroot; in zpool_scan() local 2581 nvlist_t *search, *nvroot, *ret; in zpool_find_vdev_by_physpath() local 2587 &nvroot) == 0); in zpool_find_vdev_by_physpath() 2620 nvlist_t *nvroot, *search, *ret; in zpool_find_vdev() local 2639 &nvroot) == 0); in zpool_find_vdev() 4609 nvlist_t *nvroot; in zpool_label_disk() local 4817 nvlist_t *config, *nvroot; in zvol_check_dump_config() local [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/zfs-retire/ |
H A D | zfs_retire.c | 156 nvlist_t *config, *nvroot; in find_by_guid() local 168 &nvroot) != 0) { in find_by_guid() 174 if ((*vdevp = find_vdev(zhdl, nvroot, NULL, in find_by_guid() 189 nvlist_t *nvroot; in search_pool() local 193 &nvroot) != 0) { in search_pool() 198 if ((cbp->cb_vdev = find_vdev(zpool_get_handle(zhp), nvroot, in search_pool() 232 nvlist_t *config, *nvroot, *replacement; in replace_with_spare() local 243 &nvroot) != 0) in replace_with_spare() 249 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, in replace_with_spare()
|
/illumos-gate/usr/src/cmd/bhyve/test/tests/mevent/ |
H A D | vnode_zvol.c | 84 nvlist_t *nvroot, *props; in create_zpool() local 87 nvroot = fnvlist_alloc(); in create_zpool() 95 fnvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE, VDEV_TYPE_ROOT); in create_zpool() 96 fnvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, vdevs, 1); in create_zpool() 101 if (zpool_create(zfshdl, pool, nvroot, NULL, props) != 0) { in create_zpool()
|
/illumos-gate/usr/src/cmd/syseventd/modules/zfs_mod/ |
H A D | zfs_mod.c | 110 nvlist_t *nvroot; in zfs_toplevel_state() local 115 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0); in zfs_toplevel_state() 116 verify(nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_VDEV_STATS, in zfs_toplevel_state() 155 nvlist_t *nvroot, *newvd; in zfs_process_add() local 246 if (nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) != 0) in zfs_process_add() 250 nvlist_free(nvroot); in zfs_process_add() 259 nvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE, VDEV_TYPE_ROOT) != 0 || in zfs_process_add() 260 nvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, &newvd, in zfs_process_add() 263 nvlist_free(nvroot); in zfs_process_add() 269 (void) zpool_vdev_attach(zhp, fullpath, path, nvroot, B_TRUE); in zfs_process_add() [all …]
|
/illumos-gate/usr/src/lib/libzpool/common/ |
H A D | util.c | 135 nvlist_t *config, *nvroot; in show_pool_stats() local 141 &nvroot) == 0); in show_pool_stats() 145 show_vdev_stats(name, ZPOOL_CONFIG_CHILDREN, nvroot, 0); in show_pool_stats() 146 show_vdev_stats(NULL, ZPOOL_CONFIG_L2CACHE, nvroot, 0); in show_pool_stats() 147 show_vdev_stats(NULL, ZPOOL_CONFIG_SPARES, nvroot, 0); in show_pool_stats()
|
/illumos-gate/usr/src/cmd/zpool/ |
H A D | zpool_vdev.c | 591 get_replication(nvlist_t *nvroot, boolean_t fatal) in get_replication() argument 886 nvlist_t *nvroot; in check_replication() local 889 &nvroot) == 0); in check_replication() 890 if ((current = get_replication(nvroot, B_FALSE)) == NULL) in check_replication() 1117 nvlist_t *nvroot; in is_spare() local 1140 &nvroot) == 0); in is_spare() 1297 nvlist_t *nvroot, *nv, **top, **spares, **l2cache; in construct_spec() local 1518 verify(nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) == 0); in construct_spec() 1519 verify(nvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE, in construct_spec() 1542 return (nvroot); in construct_spec() [all …]
|
H A D | zpool_main.c | 686 nvlist_t *nvroot; in zpool_do_add() local 785 if (nvroot == NULL) { in zpool_do_add() 826 nvlist_free(nvroot); in zpool_do_add() 1312 if (nvroot == NULL) in zpool_do_create() 1464 nvlist_free(nvroot); in zpool_do_create() 1699 &nvroot) == 0); in find_spare() 2232 &nvroot) == 0); in show_import() 4287 &nvroot) == 0); in get_namewidth() 4399 &nvroot) == 0); in get_stat_flags_cb() 5385 &nvroot) == 0); in list_callback() [all …]
|
H A D | zpool_iter.c | 315 nvlist_t *config, *nvroot; in for_each_vdev() local 319 &nvroot) == 0); in for_each_vdev() 321 return (for_each_vdev_cb(zhp, nvroot, func, data)); in for_each_vdev()
|
/illumos-gate/usr/src/lib/libzutil/common/ |
H A D | zutil_import.c | 742 if (nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) != 0) in get_configs() 744 if (nvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE, in get_configs() 748 nvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, in get_configs() 750 nvlist_free(nvroot); in get_configs() 764 if (fix_paths(nvroot, pl->names) != 0) { in get_configs() 765 nvlist_free(nvroot); in get_configs() 773 nvroot) != 0) { in get_configs() 774 nvlist_free(nvroot); in get_configs() 777 nvlist_free(nvroot); in get_configs() 824 &nvroot) == 0); in get_configs() [all …]
|
/illumos-gate/usr/src/cmd/fm/schemes/zfs/ |
H A D | scheme.c | 134 nvlist_t *config, *nvroot; in find_vdev() local 138 (void) nvlist_lookup_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, &nvroot); in find_vdev() 140 return (find_vdev_iter(nvroot, guid)); in find_vdev()
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | spa_config.c | 366 nvlist_t *config, *nvroot; in spa_config_generate() local 469 nvroot = vdev_config_generate(spa, vd, getstats, config_gen_flags); in spa_config_generate() 470 fnvlist_add_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, nvroot); in spa_config_generate() 471 nvlist_free(nvroot); in spa_config_generate()
|
H A D | spa.c | 4685 nvlist_t *nvroot; local 4701 VERIFY(nvlist_add_nvlist_array(nvroot, 4734 nvlist_t *nvroot; local 4750 VERIFY(nvlist_add_nvlist_array(nvroot, 5382 nvlist_t *nvtop, *nvroot; local 5426 nvlist_free(nvroot); 5649 nvlist_t *nvroot; local 5735 &nvroot) == 0); 6099 spa_vdev_add(spa_t *spa, nvlist_t *nvroot) argument 7887 nvlist_t *nvroot; local [all …]
|
/illumos-gate/usr/src/cmd/ztest/ |
H A D | ztest.c | 2601 nvlist_t *nvroot; in ztest_spa_create_destroy() local 2612 nvlist_free(nvroot); in ztest_spa_create_destroy() 2620 nvlist_free(nvroot); in ztest_spa_create_destroy() 2630 nvlist_free(nvroot); in ztest_spa_create_destroy() 2741 fnvlist_free(nvroot); in ztest_spa_upgrade() 2854 nvlist_t *nvroot; in ztest_vdev_add_remove() local 2916 nvlist_free(nvroot); in ztest_vdev_add_remove() 2939 nvlist_t *nvroot; in ztest_vdev_class_add() local 2977 nvlist_free(nvroot); in ztest_vdev_class_add() 3082 nvlist_free(nvroot); in ztest_vdev_aux_add_remove() [all …]
|
/illumos-gate/usr/src/cmd/power/ |
H A D | handlers.c | 1006 nvlist_t *config, *nvroot; in ztop() local 1034 &nvroot) != 0) { in ztop() 1039 verify(nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, in ztop()
|
/illumos-gate/usr/src/uts/common/fs/zfs/sys/ |
H A D | spa.h | 725 extern int spa_create(const char *pool, nvlist_t *nvroot, nvlist_t *props, 768 extern int spa_vdev_add(spa_t *spa, nvlist_t *nvroot); 769 extern int spa_vdev_attach(spa_t *spa, uint64_t guid, nvlist_t *nvroot,
|