Home
last modified time | relevance | path

Searched refs:nvroot (Results 1 – 20 of 20) sorted by relevance

/f-stack/freebsd/contrib/openzfs/cmd/zpool_influxdb/
H A Dzpool_influxdb.c157 (void) nvlist_lookup_uint64_array(nvroot, in print_scan_status()
271 nvroot, ZPOOL_CONFIG_ID, &vdev_id) != 0) { in get_vdev_name()
351 vdev_desc = get_vdev_desc(nvroot, parent_name); in print_summary_stats()
415 if (nvlist_lookup_nvlist(nvroot, in print_vdev_latency_stats()
510 if (nvlist_lookup_nvlist(nvroot, in print_vdev_size_stats()
594 if (nvlist_lookup_nvlist(nvroot, in print_queue_stats()
600 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()
710 nvlist_t *config, *nvroot; in print_stats() local
[all …]
/f-stack/freebsd/contrib/openzfs/lib/libzfs/
H A Dlibzfs_status.c223 nvlist_t *nvroot; in check_status() local
238 &nvroot) == 0); in check_status()
260 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, in check_status()
380 find_vdev_problem(nvroot, vdev_faulted, B_TRUE)) in check_status()
384 find_vdev_problem(nvroot, vdev_missing, B_TRUE)) in check_status()
388 find_vdev_problem(nvroot, vdev_broken, B_TRUE)) in check_status()
410 if (find_vdev_problem(nvroot, vdev_faulted, B_TRUE)) in check_status()
412 if (find_vdev_problem(nvroot, vdev_missing, B_TRUE)) in check_status()
414 if (find_vdev_problem(nvroot, vdev_broken, B_TRUE)) in check_status()
426 if (find_vdev_problem(nvroot, vdev_offlined, B_TRUE)) in check_status()
[all …]
H A Dlibzfs_import.c273 nvlist_t *nvroot; in find_aux() local
276 &nvroot) == 0); in find_aux()
278 if (nvlist_lookup_nvlist_array(nvroot, cbp->cb_type, in find_aux()
381 nvlist_t *nvroot; in zpool_in_use() local
384 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0); in zpool_in_use()
385 ret = find_guid(nvroot, vdev_guid); in zpool_in_use()
H A Dlibzfs_pool.c252 nvlist_t *nvroot; in zpool_get_state_str() local
266 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0); in zpool_get_state_str()
267 verify(nvlist_lookup_uint64_array(nvroot, in zpool_get_state_str()
1171 zpool_has_special_vdev(nvlist_t *nvroot) in zpool_has_special_vdev() argument
1273 !zpool_has_special_vdev(nvroot)) { in zpool_create()
2463 nvlist_t *nvroot; in zpool_scan() local
2469 (void) nvlist_lookup_uint64_array(nvroot, in zpool_scan()
2665 nvlist_t *search, *nvroot, *ret; in zpool_find_vdev_by_physpath() local
2680 &nvroot) == 0); in zpool_find_vdev_by_physpath()
2717 nvlist_t *nvroot, *search, *ret; in zpool_find_vdev() local
[all …]
H A Dlibzfs.abi2653 …<parameter type-id='type-id-48' name='nvroot' filepath='/home/fedora/zfs/lib/libzfs/libzfs_pool.c'…
2774 …<parameter type-id='type-id-48' name='nvroot' filepath='/home/fedora/zfs/lib/libzfs/libzfs_pool.c'…
2793 …<parameter type-id='type-id-48' name='nvroot' filepath='/home/fedora/zfs/lib/libzfs/libzfs_pool.c'…
/f-stack/freebsd/contrib/openzfs/module/os/freebsd/zfs/
H A Dspa_os.c81 nvlist_t *best_cfg, *nvtop, *nvroot; in spa_generate_rootconf() local
157 VERIFY(nvlist_alloc(&nvroot, NV_UNIQUE_NAME, KM_SLEEP) == 0); in spa_generate_rootconf()
158 VERIFY(nvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE, in spa_generate_rootconf()
160 VERIFY(nvlist_add_uint64(nvroot, ZPOOL_CONFIG_ID, 0ULL) == 0); in spa_generate_rootconf()
161 VERIFY(nvlist_add_uint64(nvroot, ZPOOL_CONFIG_GUID, pgid) == 0); in spa_generate_rootconf()
162 VERIFY(nvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, in spa_generate_rootconf()
169 VERIFY(nvlist_add_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, nvroot) == 0); in spa_generate_rootconf()
183 nvlist_free(nvroot); in spa_generate_rootconf()
/f-stack/freebsd/contrib/openzfs/lib/libzutil/
H A Dzutil_import.c726 if (nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) != 0) in get_configs()
728 if (nvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE, in get_configs()
734 nvlist_free(nvroot); in get_configs()
748 if (fix_paths(hdl, nvroot, pl->names) != 0) { in get_configs()
749 nvlist_free(nvroot); in get_configs()
757 nvroot) != 0) { in get_configs()
758 nvlist_free(nvroot); in get_configs()
761 nvlist_free(nvroot); in get_configs()
808 &nvroot) == 0); in get_configs()
1003 if (nvroot == NULL) in label_paths_impl()
[all …]
/f-stack/freebsd/contrib/openzfs/cmd/zed/agents/
H A Dzfs_mod.c116 nvlist_t *nvroot; in zfs_toplevel_state() local
121 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0); in zfs_toplevel_state()
122 verify(nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_VDEV_STATS, in zfs_toplevel_state()
183 nvlist_t *nvroot, *newvd; in zfs_process_add() local
398 if (nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) != 0) { in zfs_process_add()
404 nvlist_free(nvroot); in zfs_process_add()
417 nvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, &newvd, in zfs_process_add()
421 nvlist_free(nvroot); in zfs_process_add()
434 nvlist_free(nvroot); in zfs_process_add()
444 ret = zpool_vdev_attach(zhp, fullpath, path, nvroot, in zfs_process_add()
[all …]
H A Dzfs_retire.c151 nvlist_t *config, *nvroot; in find_by_guid() local
163 &nvroot) != 0) { in find_by_guid()
169 if ((*vdevp = find_vdev(zhdl, nvroot, vdev_guid)) == NULL) { in find_by_guid()
186 nvlist_t *config, *nvroot, *replacement; in replace_with_spare() local
195 &nvroot) != 0) in replace_with_spare()
201 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, in replace_with_spare()
/f-stack/freebsd/contrib/openzfs/lib/libzpool/
H A Dutil.c134 nvlist_t *config, *nvroot; in show_pool_stats() local
140 &nvroot) == 0); in show_pool_stats()
144 show_vdev_stats(name, ZPOOL_CONFIG_CHILDREN, nvroot, 0); in show_pool_stats()
145 show_vdev_stats(NULL, ZPOOL_CONFIG_L2CACHE, nvroot, 0); in show_pool_stats()
146 show_vdev_stats(NULL, ZPOOL_CONFIG_SPARES, nvroot, 0); in show_pool_stats()
/f-stack/freebsd/contrib/openzfs/cmd/zpool/
H A Dzpool_vdev.c217 nvlist_t *nvroot; in is_spare() local
248 &nvroot) == 0); in is_spare()
486 get_replication(nvlist_t *nvroot, boolean_t fatal) in get_replication() argument
808 nvlist_t *nvroot; in check_replication() local
811 &nvroot) == 0); in check_replication()
1448 nvlist_t *nvroot, *nv, **top, **spares, **l2cache; in construct_spec() local
1463 nvroot = NULL; in construct_spec()
1702 verify(nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) == 0); in construct_spec()
1703 verify(nvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE, in construct_spec()
1726 return (nvroot); in construct_spec()
[all …]
H A Dzpool_main.c881 nvlist_t *nvroot; in zpool_do_add() local
972 if (nvroot == NULL) { in zpool_do_add()
1079 nvlist_free(nvroot); in zpool_do_add()
1527 if (nvroot == NULL) in zpool_do_create()
1683 nvlist_free(nvroot); in zpool_do_create()
1940 &nvroot) == 0); in find_spare()
2614 &nvroot) == 0); in show_import()
4820 &nvroot) == 0); in get_namewidth()
4932 &nvroot) == 0); in get_stat_flags_cb()
6088 &nvroot) == 0); in list_callback()
[all …]
H A Dzpool_iter.c324 nvlist_t *config, *nvroot = NULL; in for_each_vdev() local
328 &nvroot) == 0); in for_each_vdev()
330 return (for_each_vdev_cb(zhp, nvroot, func, data)); in for_each_vdev()
/f-stack/freebsd/contrib/openzfs/lib/libzfs/os/linux/
H A Dlibzfs_pool_os.c227 nvlist_t *nvroot; in zpool_label_disk() local
230 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0); in zpool_label_disk()
233 start_block = find_start_block(nvroot); in zpool_label_disk()
/f-stack/freebsd/contrib/openzfs/module/zfs/
H A Dspa_config.c400 nvlist_t *config, *nvroot; in spa_config_generate() local
497 nvroot = vdev_config_generate(spa, vd, getstats, config_gen_flags); in spa_config_generate()
498 fnvlist_add_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, nvroot); in spa_config_generate()
499 nvlist_free(nvroot); in spa_config_generate()
H A Dspa.c5192 nvlist_t *nvroot; local
5208 VERIFY(nvlist_add_nvlist_array(nvroot,
5210 VERIFY(nvlist_lookup_nvlist_array(nvroot,
5241 nvlist_t *nvroot; local
5257 VERIFY(nvlist_add_nvlist_array(nvroot,
5259 VERIFY(nvlist_lookup_nvlist_array(nvroot,
5943 nvlist_t *nvroot; local
6029 &nvroot) == 0);
6431 spa_vdev_add(spa_t *spa, nvlist_t *nvroot) argument
8380 nvlist_t *nvroot; local
[all …]
H A Dvdev_draid.c1867 vdev_draid_spare_create(nvlist_t *nvroot, vdev_t *vd, uint64_t *ndraidp, in vdev_draid_spare_create() argument
1891 error = nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, in vdev_draid_spare_create()
1943 (void) nvlist_remove_all(nvroot, ZPOOL_CONFIG_SPARES); in vdev_draid_spare_create()
1944 fnvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, in vdev_draid_spare_create()
/f-stack/freebsd/contrib/openzfs/lib/libzfs/os/freebsd/
H A Dlibzfs_ioctl_compat.c120 nvlist_t *nvroot = NULL;
132 &nvroot) == 0)
133 zfs_ioctl_compat_fix_stats_nvlist(nvroot);
/f-stack/freebsd/contrib/openzfs/cmd/ztest/
H A Dztest.c2809 nvlist_t *nvroot; in ztest_spa_create_destroy() local
2820 nvlist_free(nvroot); in ztest_spa_create_destroy()
2828 nvlist_free(nvroot); in ztest_spa_create_destroy()
2838 nvlist_free(nvroot); in ztest_spa_create_destroy()
2969 fnvlist_free(nvroot); in ztest_spa_upgrade()
3083 nvlist_t *nvroot; in ztest_vdev_add_remove() local
3149 nvlist_free(nvroot); in ztest_vdev_add_remove()
3172 nvlist_t *nvroot; in ztest_vdev_class_add() local
3211 nvlist_free(nvroot); in ztest_vdev_class_add()
3324 nvlist_free(nvroot); in ztest_vdev_aux_add_remove()
[all …]
/f-stack/freebsd/contrib/openzfs/include/sys/
H A Dspa.h766 extern int spa_create(const char *pool, nvlist_t *nvroot, nvlist_t *props,
805 extern int spa_vdev_add(spa_t *spa, nvlist_t *nvroot);
806 extern int spa_vdev_attach(spa_t *spa, uint64_t guid, nvlist_t *nvroot,