Home
last modified time | relevance | path

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

/freebsd-13.1/sys/contrib/openzfs/cmd/zpool_influxdb/
H A Dzpool_influxdb.c158 (void) nvlist_lookup_uint64_array(nvroot, in print_scan_status()
272 nvroot, ZPOOL_CONFIG_ID, &vdev_id) != 0) { in get_vdev_name()
352 vdev_desc = get_vdev_desc(nvroot, parent_name); in print_summary_stats()
416 if (nvlist_lookup_nvlist(nvroot, in print_vdev_latency_stats()
511 if (nvlist_lookup_nvlist(nvroot, in print_vdev_size_stats()
595 if (nvlist_lookup_nvlist(nvroot, in print_queue_stats()
601 get_vdev_desc(nvroot, parent_name)); in print_queue_stats()
646 if (nvlist_lookup_nvlist(nvroot, in print_top_level_vdev_stats()
681 err = func(nvroot, pool_name, parent_name); in print_recursive_stats()
710 nvlist_t *config, *nvroot; in print_stats() local
[all …]
/freebsd-13.1/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_status.c227 nvlist_t *nvroot; in check_status() local
242 &nvroot) == 0); in check_status()
264 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, in check_status()
384 find_vdev_problem(nvroot, vdev_faulted, B_TRUE)) in check_status()
388 find_vdev_problem(nvroot, vdev_missing, B_TRUE)) in check_status()
392 find_vdev_problem(nvroot, vdev_broken, B_TRUE)) in check_status()
414 if (find_vdev_problem(nvroot, vdev_faulted, B_TRUE)) in check_status()
416 if (find_vdev_problem(nvroot, vdev_missing, B_TRUE)) in check_status()
418 if (find_vdev_problem(nvroot, vdev_broken, B_TRUE)) in check_status()
430 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.c256 nvlist_t *nvroot; in zpool_get_state_str() local
1192 zpool_has_special_vdev(nvlist_t *nvroot) in zpool_has_special_vdev() argument
1216 zpool_has_draid_vdev(nvlist_t *nvroot) in zpool_has_draid_vdev() argument
1318 !zpool_has_special_vdev(nvroot)) { in zpool_create()
1422 if (zpool_has_draid_vdev(nvroot) && in zpool_create()
1588 if (zpool_has_draid_vdev(nvroot) && in zpool_add()
2527 nvlist_t *nvroot; in zpool_scan() local
2759 nvlist_t *search, *nvroot, *ret; in zpool_find_vdev_by_physpath() local
2774 &nvroot) == 0); in zpool_find_vdev_by_physpath()
2811 nvlist_t *nvroot, *search, *ret; in zpool_find_vdev() local
[all …]
H A Dlibzfs.abi5736 <parameter type-id='5ce45b60' name='nvroot'/>
5756 <parameter type-id='5ce45b60' name='nvroot'/>
5877 <parameter type-id='5ce45b60' name='nvroot'/>
/freebsd-13.1/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dspa_os.c81 nvlist_t *best_cfg, *nvtop, *nvroot; in spa_generate_rootconf() local
151 nvroot = fnvlist_alloc(); in spa_generate_rootconf()
152 fnvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE, VDEV_TYPE_ROOT); in spa_generate_rootconf()
153 fnvlist_add_uint64(nvroot, ZPOOL_CONFIG_ID, 0ULL); in spa_generate_rootconf()
154 fnvlist_add_uint64(nvroot, ZPOOL_CONFIG_GUID, pgid); in spa_generate_rootconf()
155 fnvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, tops, in spa_generate_rootconf()
162 fnvlist_add_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, nvroot); in spa_generate_rootconf()
176 fnvlist_free(nvroot); in spa_generate_rootconf()
/freebsd-13.1/sys/contrib/openzfs/lib/libzutil/
H A Dzutil_import.c738 if (nvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE, in get_configs()
744 nvlist_free(nvroot); in get_configs()
758 if (fix_paths(hdl, nvroot, pl->names) != 0) { in get_configs()
759 nvlist_free(nvroot); in get_configs()
767 nvroot) != 0) { in get_configs()
768 nvlist_free(nvroot); in get_configs()
771 nvlist_free(nvroot); in get_configs()
818 &nvroot) == 0); in get_configs()
1146 if (nvroot == NULL) in label_paths_impl()
1172 nvlist_t *nvroot; in label_paths() local
[all …]
/freebsd-13.1/sys/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
460 if (nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) != 0) { in zfs_process_add()
466 nvlist_free(nvroot); in zfs_process_add()
479 nvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, &newvd, in zfs_process_add()
483 nvlist_free(nvroot); in zfs_process_add()
496 nvlist_free(nvroot); in zfs_process_add()
506 ret = zpool_vdev_attach(zhp, fullpath, path, nvroot, in zfs_process_add()
[all …]
H A Dzfs_retire.c152 nvlist_t *config, *nvroot; in find_by_guid() local
164 &nvroot) != 0) { in find_by_guid()
170 if ((*vdevp = find_vdev(zhdl, nvroot, vdev_guid)) == NULL) { in find_by_guid()
187 nvlist_t *config, *nvroot, *replacement; in replace_with_spare() local
196 &nvroot) != 0) in replace_with_spare()
202 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, in replace_with_spare()
/freebsd-13.1/cddl/usr.sbin/zfsd/
H A Dcase_file.cc491 nvlist_t *config, *nvroot, *parent_config; in ActivateSpare() local
519 parent_config = find_parent(config, nvroot, m_vdevGUID); in ActivateSpare()
1055 nvlist_t *nvroot, *newvd; in Replace() local
1095 nvroot = NULL; in Replace()
1098 if (nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) != 0 in Replace()
1102 if (nvroot != NULL) in Replace()
1103 nvlist_free(nvroot); in Replace()
1109 || nvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, in Replace()
1114 nvlist_free(nvroot); in Replace()
1121 retval = (zpool_vdev_attach(zhp, oldstr.c_str(), path, nvroot, in Replace()
[all …]
/freebsd-13.1/sys/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.c904 nvlist_t *nvroot; in zpool_do_add() local
995 if (nvroot == NULL) { in zpool_do_add()
1102 nvlist_free(nvroot); in zpool_do_add()
1589 if (nvroot == NULL) in zpool_do_create()
1767 nvlist_free(nvroot); in zpool_do_create()
2024 &nvroot) == 0); in find_spare()
2706 &nvroot) == 0); in show_import()
4999 &nvroot) == 0); in get_namewidth()
5111 &nvroot) == 0); in get_stat_flags_cb()
6268 &nvroot) == 0); in list_callback()
[all …]
H A Dzpool_iter.c279 nvlist_t *config, *nvroot = NULL; in for_each_vdev() local
283 &nvroot) == 0); in for_each_vdev()
285 return (for_each_vdev_cb((void *) zhp, nvroot, func, data)); in for_each_vdev()
/freebsd-13.1/sys/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()
/freebsd-13.1/sys/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()
/freebsd-13.1/sys/contrib/openzfs/module/zfs/
H A Dspa_config.c401 nvlist_t *config, *nvroot; in spa_config_generate() local
501 nvroot = vdev_config_generate(spa, vd, getstats, config_gen_flags); in spa_config_generate()
502 fnvlist_add_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, nvroot); in spa_config_generate()
503 nvlist_free(nvroot); in spa_config_generate()
H A Dspa.c5286 nvlist_t *nvroot; local
5302 VERIFY(nvlist_add_nvlist_array(nvroot,
5304 VERIFY(nvlist_lookup_nvlist_array(nvroot,
5335 nvlist_t *nvroot; local
5351 VERIFY(nvlist_add_nvlist_array(nvroot,
5353 VERIFY(nvlist_lookup_nvlist_array(nvroot,
6037 nvlist_t *nvroot; local
6123 &nvroot) == 0);
6544 spa_vdev_add(spa_t *spa, nvlist_t *nvroot) argument
8497 nvlist_t *nvroot; local
[all …]
H A Dvdev_draid.c1679 vdev_draid_spare_create(nvlist_t *nvroot, vdev_t *vd, uint64_t *ndraidp, in vdev_draid_spare_create() argument
1703 error = nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, in vdev_draid_spare_create()
1755 (void) nvlist_remove_all(nvroot, ZPOOL_CONFIG_SPARES); in vdev_draid_spare_create()
1756 fnvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, in vdev_draid_spare_create()
/freebsd-13.1/sys/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);
/freebsd-13.1/sys/contrib/openzfs/include/
H A Dlibzutil.h169 int for_each_vdev_in_nvlist(nvlist_t *nvroot, pool_vdev_iter_f func,
/freebsd-13.1/sys/contrib/openzfs/lib/libzutil/os/linux/
H A Dzutil_import_os.c826 nvlist_t *nvroot = NULL; in update_vdevs_config_dev_sysfs_path() local
828 &nvroot) == 0); in update_vdevs_config_dev_sysfs_path()
829 for_each_vdev_in_nvlist(nvroot, sysfs_path_pool_vdev_iter_f, NULL); in update_vdevs_config_dev_sysfs_path()
/freebsd-13.1/sys/contrib/openzfs/cmd/ztest/
H A Dztest.c2943 nvlist_t *nvroot; in ztest_spa_create_destroy() local
2954 fnvlist_free(nvroot); in ztest_spa_create_destroy()
2962 fnvlist_free(nvroot); in ztest_spa_create_destroy()
2972 fnvlist_free(nvroot); in ztest_spa_create_destroy()
3103 fnvlist_free(nvroot); in ztest_spa_upgrade()
3217 nvlist_t *nvroot; in ztest_vdev_add_remove() local
3283 fnvlist_free(nvroot); in ztest_vdev_add_remove()
3306 nvlist_t *nvroot; in ztest_vdev_class_add() local
3345 fnvlist_free(nvroot); in ztest_vdev_class_add()
3458 fnvlist_free(nvroot); in ztest_vdev_aux_add_remove()
[all …]
/freebsd-13.1/sys/contrib/openzfs/include/sys/
H A Dspa.h772 extern int spa_create(const char *pool, nvlist_t *nvroot, nvlist_t *props,
811 extern int spa_vdev_add(spa_t *spa, nvlist_t *nvroot);
812 extern int spa_vdev_attach(spa_t *spa, uint64_t guid, nvlist_t *nvroot,
/freebsd-13.1/sys/contrib/openzfs/lib/libzfs_core/
H A Dlibzfs_core.abi4195 <parameter type-id='5ce45b60' name='nvroot'/>