| /freebsd-14.2/sys/contrib/openzfs/cmd/zpool_influxdb/ |
| H A D | zpool_influxdb.c | 159 (void) nvlist_lookup_uint64_array(nvroot, in print_scan_status() 271 nvroot, ZPOOL_CONFIG_ID, &vdev_id) != 0) in get_vdev_name() 344 vdev_desc = get_vdev_desc(nvroot, parent_name); in print_summary_stats() 409 if (nvlist_lookup_nvlist(nvroot, in print_vdev_latency_stats() 506 if (nvlist_lookup_nvlist(nvroot, in print_vdev_size_stats() 592 if (nvlist_lookup_nvlist(nvroot, in print_queue_stats() 598 get_vdev_desc(nvroot, parent_name)); in print_queue_stats() 645 if (nvlist_lookup_nvlist(nvroot, in print_top_level_vdev_stats() 680 err = func(nvroot, pool_name, parent_name); in print_recursive_stats() 711 nvlist_t *config, *nvroot; in print_stats() local [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/lib/libzfs/ |
| H A D | libzfs_status.c | 232 nvlist_t *nvroot = fnvlist_lookup_nvlist(config, in check_status() local 255 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, in check_status() 373 find_vdev_problem(nvroot, vdev_faulted, B_TRUE)) in check_status() 377 find_vdev_problem(nvroot, vdev_missing, B_TRUE)) in check_status() 381 find_vdev_problem(nvroot, vdev_broken, B_TRUE)) in check_status() 404 if (find_vdev_problem(nvroot, vdev_faulted, B_TRUE)) in check_status() 406 if (find_vdev_problem(nvroot, vdev_missing, B_TRUE)) in check_status() 408 if (find_vdev_problem(nvroot, vdev_broken, B_TRUE)) in check_status() 420 if (find_vdev_problem(nvroot, vdev_offlined, B_TRUE)) in check_status() 426 if (find_vdev_problem(nvroot, vdev_removed, B_TRUE)) in check_status() [all …]
|
| H A D | libzfs_import.c | 254 nvlist_t *nvroot = fnvlist_lookup_nvlist(zhp->zpool_config, in find_aux() local 257 if (nvlist_lookup_nvlist_array(nvroot, cbp->cb_type, in find_aux() 354 nvlist_t *nvroot = fnvlist_lookup_nvlist( in zpool_in_use() local 356 ret = find_guid(nvroot, vdev_guid); in zpool_in_use()
|
| H A D | libzfs_pool.c | 262 nvlist_t *nvroot = fnvlist_lookup_nvlist( in zpool_get_state_str() local 266 nvroot, ZPOOL_CONFIG_VDEV_STATS, &vsc); in zpool_get_state_str() 1381 zpool_has_special_vdev(nvlist_t *nvroot) in zpool_has_special_vdev() argument 1405 zpool_has_draid_vdev(nvlist_t *nvroot) in zpool_has_draid_vdev() argument 1480 zcmd_write_conf_nvlist(hdl, &zc, nvroot); in zpool_create() 1506 !zpool_has_special_vdev(nvroot)) { in zpool_create() 1610 if (zpool_has_draid_vdev(nvroot) && in zpool_create() 1777 if (zpool_has_draid_vdev(nvroot) && in zpool_add() 2734 nvlist_t *nvroot; in zpool_scan() local 2995 nvlist_t *search, *nvroot, *ret; in zpool_find_vdev_by_physpath() local [all …]
|
| H A D | libzfs.abi | 6275 <parameter type-id='5ce45b60' name='nvroot'/> 6295 <parameter type-id='5ce45b60' name='nvroot'/> 6422 <parameter type-id='5ce45b60' name='nvroot'/>
|
| /freebsd-14.2/sys/contrib/openzfs/module/os/freebsd/zfs/ |
| H A D | spa_os.c | 80 nvlist_t *best_cfg, *nvtop, *nvroot; in spa_generate_rootconf() local 152 nvroot = fnvlist_alloc(); in spa_generate_rootconf() 153 fnvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE, VDEV_TYPE_ROOT); in spa_generate_rootconf() 154 fnvlist_add_uint64(nvroot, ZPOOL_CONFIG_ID, 0ULL); in spa_generate_rootconf() 155 fnvlist_add_uint64(nvroot, ZPOOL_CONFIG_GUID, pgid); in spa_generate_rootconf() 156 fnvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, in spa_generate_rootconf() 163 fnvlist_add_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, nvroot); in spa_generate_rootconf() 177 fnvlist_free(nvroot); in spa_generate_rootconf()
|
| /freebsd-14.2/sys/contrib/openzfs/lib/libzutil/ |
| H A D | zutil_import.c | 771 if (nvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE, in get_configs() 777 nvlist_free(nvroot); in get_configs() 791 if (fix_paths(hdl, nvroot, pl->names) != 0) { in get_configs() 792 nvlist_free(nvroot); in get_configs() 800 nvroot) != 0) { in get_configs() 801 nvlist_free(nvroot); in get_configs() 804 nvlist_free(nvroot); in get_configs() 851 &nvroot) == 0); in get_configs() 1194 if (nvroot == NULL) in label_paths_impl() 1221 nvlist_t *nvroot; in label_paths() local [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/cmd/zed/agents/ |
| H A D | zfs_retire.c | 149 nvlist_t *config, *nvroot; in remove_spares() local 160 ZPOOL_CONFIG_VDEV_TREE, &nvroot) != 0) { in remove_spares() 165 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, in remove_spares() 213 nvlist_t *config, *nvroot; in find_by_guid() local 225 &nvroot) != 0) { in find_by_guid() 231 if ((*vdevp = find_vdev(zhdl, nvroot, vdev_guid)) == NULL) { in find_by_guid() 248 nvlist_t *config, *nvroot, *replacement; in replace_with_spare() local 257 &nvroot) != 0) in replace_with_spare() 263 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, in replace_with_spare()
|
| H A D | zfs_mod.c | 117 nvlist_t *nvroot; in zfs_toplevel_state() local 122 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0); in zfs_toplevel_state() 123 verify(nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_VDEV_STATS, in zfs_toplevel_state() 200 nvlist_t *nvroot, *newvd; in zfs_process_add() local 536 if (nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) != 0) { in zfs_process_add() 542 nvlist_free(nvroot); in zfs_process_add() 555 nvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, in zfs_process_add() 559 nvlist_free(nvroot); in zfs_process_add() 574 nvlist_free(nvroot); in zfs_process_add() 584 ret = zpool_vdev_attach(zhp, fullpath, path, nvroot, in zfs_process_add() [all …]
|
| /freebsd-14.2/cddl/usr.sbin/zfsd/ |
| H A D | case_file.cc | 518 nvlist_t *config, *nvroot, *parent_config; in ActivateSpare() local 545 parent_config = find_parent(config, nvroot, m_vdevGUID); 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() 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() [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/cmd/zpool/ |
| H A D | zpool_vdev.c | 216 nvlist_t *nvroot; in is_spare() local 247 &nvroot) == 0); in is_spare() 489 get_replication(nvlist_t *nvroot, boolean_t fatal) in get_replication() argument 824 nvlist_t *nvroot; in check_replication() local 827 &nvroot) == 0); in check_replication() 1493 nvlist_t *nvroot, *nv, **top, **spares, **l2cache; in construct_spec() local 1508 nvroot = NULL; in construct_spec() 1747 verify(nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) == 0); in construct_spec() 1748 verify(nvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE, in construct_spec() 1771 return (nvroot); in construct_spec() [all …]
|
| H A D | zpool_main.c | 1044 nvlist_t *nvroot; in zpool_do_add() local 1167 if (nvroot == NULL) { in zpool_do_add() 1274 nvlist_free(nvroot); in zpool_do_add() 1768 if (nvroot == NULL) in zpool_do_create() 1948 nvlist_free(nvroot); in zpool_do_create() 2186 &nvroot) == 0); in find_spare() 2949 &nvroot) == 0); in show_import() 5283 &nvroot) == 0); in get_namewidth() 5395 &nvroot) == 0); in get_stat_flags_cb() 6553 &nvroot) == 0); in list_callback() [all …]
|
| H A D | zpool_iter.c | 282 nvlist_t *config, *nvroot = NULL; in for_each_vdev() local 286 &nvroot) == 0); in for_each_vdev() 288 return (for_each_vdev_cb((void *) zhp, nvroot, func, data)); in for_each_vdev()
|
| /freebsd-14.2/sys/contrib/openzfs/lib/libzpool/ |
| H A D | util.c | 136 nvlist_t *config, *nvroot; in show_pool_stats() local 142 &nvroot) == 0); in show_pool_stats() 146 show_vdev_stats(name, ZPOOL_CONFIG_CHILDREN, nvroot, 0); in show_pool_stats() 147 show_vdev_stats(NULL, ZPOOL_CONFIG_L2CACHE, nvroot, 0); in show_pool_stats() 148 show_vdev_stats(NULL, ZPOOL_CONFIG_SPARES, nvroot, 0); in show_pool_stats()
|
| /freebsd-14.2/sys/contrib/openzfs/module/zfs/ |
| H A D | spa_config.c | 417 nvlist_t *config, *nvroot; in spa_config_generate() local 517 nvroot = vdev_config_generate(spa, vd, getstats, config_gen_flags); in spa_config_generate() 518 fnvlist_add_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, nvroot); in spa_config_generate() 519 nvlist_free(nvroot); in spa_config_generate()
|
| H A D | spa.c | 5815 nvlist_t *nvroot; local 5865 nvlist_t *nvroot; local 6374 if (error == 0 && !zfs_allocatable_devs(nvroot)) 6568 nvlist_t *nvroot; local 7125 if (ndraid > 0 && nvlist_lookup_nvlist_array(nvroot, 9059 nvlist_t *nvroot; local 9080 nvroot = fnvlist_alloc(); 9082 fnvlist_add_nvlist_array(nvroot, config, 9089 fnvlist_add_nvlist_array(nvroot, config, 9096 spa_sync_nvlist(spa, sav->sav_object, nvroot, tx); [all …]
|
| H A D | vdev_draid.c | 1687 vdev_draid_spare_create(nvlist_t *nvroot, vdev_t *vd, uint64_t *ndraidp, in vdev_draid_spare_create() argument 1711 error = nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, in vdev_draid_spare_create() 1763 (void) nvlist_remove_all(nvroot, ZPOOL_CONFIG_SPARES); in vdev_draid_spare_create() 1764 fnvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, in vdev_draid_spare_create()
|
| /freebsd-14.2/sys/contrib/openzfs/lib/libzfs/os/linux/ |
| H A D | libzfs_pool_os.c | 226 nvlist_t *nvroot = fnvlist_lookup_nvlist(zhp->zpool_config, in zpool_label_disk() local 230 start_block = find_start_block(nvroot); in zpool_label_disk()
|
| /freebsd-14.2/sys/contrib/openzfs/lib/libzutil/os/linux/ |
| H A D | zutil_import_os.c | 837 nvlist_t *nvroot = NULL; in update_vdevs_config_dev_sysfs_path() local 839 &nvroot) == 0); in update_vdevs_config_dev_sysfs_path() 840 for_each_vdev_in_nvlist(nvroot, sysfs_path_pool_vdev_iter_f, NULL); in update_vdevs_config_dev_sysfs_path()
|
| /freebsd-14.2/sys/contrib/openzfs/cmd/ |
| H A D | ztest.c | 2933 nvlist_t *nvroot; in ztest_spa_create_destroy() local 2944 fnvlist_free(nvroot); in ztest_spa_create_destroy() 2952 fnvlist_free(nvroot); in ztest_spa_create_destroy() 2962 fnvlist_free(nvroot); in ztest_spa_create_destroy() 3093 fnvlist_free(nvroot); in ztest_spa_upgrade() 3208 nvlist_t *nvroot; in ztest_vdev_add_remove() local 3274 fnvlist_free(nvroot); in ztest_vdev_add_remove() 3297 nvlist_t *nvroot; in ztest_vdev_class_add() local 3336 fnvlist_free(nvroot); in ztest_vdev_class_add() 3450 fnvlist_free(nvroot); in ztest_vdev_aux_add_remove() [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/include/ |
| H A D | libzutil.h | 265 int for_each_vdev_in_nvlist(nvlist_t *nvroot, pool_vdev_iter_f func,
|
| /freebsd-14.2/sys/contrib/openzfs/include/sys/ |
| H A D | spa.h | 747 extern int spa_create(const char *pool, nvlist_t *nvroot, nvlist_t *props, 787 extern int spa_vdev_add(spa_t *spa, nvlist_t *nvroot, boolean_t ashift_check); 788 extern int spa_vdev_attach(spa_t *spa, uint64_t guid, nvlist_t *nvroot,
|