Searched refs:nvroot (Results 1 - 21 of 21) sorted by relevance

/freebsd-current/sys/contrib/openzfs/cmd/zpool_influxdb/
H A Dzpool_influxdb.c147 print_scan_status(nvlist_t *nvroot, const char *pool_name) argument
159 (void) nvlist_lookup_uint64_array(nvroot,
262 get_vdev_name(nvlist_t *nvroot, const char *parent_name) argument
268 (void) nvlist_lookup_string(nvroot, ZPOOL_CONFIG_TYPE, &vdev_type);
271 nvroot, ZPOOL_CONFIG_ID, &vdev_id) != 0)
296 get_vdev_desc(nvlist_t *nvroot, const char *parent_name) argument
305 (void) nvlist_lookup_string(nvroot, ZPOOL_CONFIG_TYPE, &vdev_type);
306 (void) nvlist_lookup_uint64(nvroot, ZPOOL_CONFIG_ID, &vdev_id);
307 (void) nvlist_lookup_string(nvroot, ZPOOL_CONFIG_PATH, &vdev_path);
338 print_summary_stats(nvlist_t *nvroot, cons argument
378 print_vdev_latency_stats(nvlist_t *nvroot, const char *pool_name, const char *parent_name) argument
472 print_vdev_size_stats(nvlist_t *nvroot, const char *pool_name, const char *parent_name) argument
565 print_queue_stats(nvlist_t *nvroot, const char *pool_name, const char *parent_name) argument
619 print_top_level_vdev_stats(nvlist_t *nvroot, const char *pool_name) argument
672 print_recursive_stats(stat_printer_f func, nvlist_t *nvroot, const char *pool_name, const char *parent_name, int descend) argument
711 nvlist_t *config, *nvroot; local
[all...]
/freebsd-current/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_status.c232 nvlist_t *nvroot = fnvlist_lookup_nvlist(config, local
234 vdev_stat_t *vs = (vdev_stat_t *)fnvlist_lookup_uint64_array(nvroot,
242 (void) nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_SCAN_STATS,
255 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN,
373 find_vdev_problem(nvroot, vdev_faulted, B_TRUE))
377 find_vdev_problem(nvroot, vdev_missing, B_TRUE))
381 find_vdev_problem(nvroot, vdev_broken, B_TRUE))
404 if (find_vdev_problem(nvroot, vdev_faulted, B_TRUE))
406 if (find_vdev_problem(nvroot, vdev_missing, B_TRUE))
408 if (find_vdev_problem(nvroot, vdev_broke
[all...]
H A Dlibzfs_import.c254 nvlist_t *nvroot = fnvlist_lookup_nvlist(zhp->zpool_config, local
257 if (nvlist_lookup_nvlist_array(nvroot, cbp->cb_type,
354 nvlist_t *nvroot = fnvlist_lookup_nvlist( local
356 ret = find_guid(nvroot, vdev_guid);
H A Dlibzfs_pool.c262 nvlist_t *nvroot = fnvlist_lookup_nvlist( local
266 nvroot, ZPOOL_CONFIG_VDEV_STATS, &vsc);
1381 zpool_has_special_vdev(nvlist_t *nvroot) argument
1386 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, &child,
1405 zpool_has_draid_vdev(nvlist_t *nvroot) argument
1410 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN,
1462 zpool_create(libzfs_handle_t *hdl, const char *pool, nvlist_t *nvroot, argument
1480 zcmd_write_conf_nvlist(hdl, &zc, nvroot);
1506 !zpool_has_special_vdev(nvroot)) {
1610 if (zpool_has_draid_vdev(nvroot)
1727 zpool_add(zpool_handle_t *zhp, nvlist_t *nvroot, boolean_t check_ashift) argument
2734 nvlist_t *nvroot; local
2995 nvlist_t *search, *nvroot, *ret; local
3050 nvlist_t *nvroot, *search, *ret; local
3413 zpool_vdev_attach(zpool_handle_t *zhp, const char *old_disk, const char *new_disk, nvlist_t *nvroot, int replacing, boolean_t rebuild) argument
[all...]
/freebsd-current/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dspa_os.c80 nvlist_t *best_cfg, *nvtop, *nvroot; local
152 nvroot = fnvlist_alloc();
153 fnvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE, VDEV_TYPE_ROOT);
154 fnvlist_add_uint64(nvroot, ZPOOL_CONFIG_ID, 0ULL);
155 fnvlist_add_uint64(nvroot, ZPOOL_CONFIG_GUID, pgid);
156 fnvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN,
163 fnvlist_add_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, nvroot);
177 fnvlist_free(nvroot);
/freebsd-current/sys/contrib/openzfs/cmd/zed/agents/
H A Dzfs_retire.c149 nvlist_t *config, *nvroot; local
160 ZPOOL_CONFIG_VDEV_TREE, &nvroot) != 0) {
165 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES,
213 nvlist_t *config, *nvroot; local
225 &nvroot) != 0) {
231 if ((*vdevp = find_vdev(zhdl, nvroot, vdev_guid)) == NULL) {
248 nvlist_t *config, *nvroot, *replacement; local
257 &nvroot) != 0)
263 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES,
H A Dzfs_mod.c117 nvlist_t *nvroot; local
122 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0);
123 verify(nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_VDEV_STATS,
200 nvlist_t *nvroot, *newvd; local
536 if (nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) != 0) {
542 nvlist_free(nvroot);
554 nvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE, VDEV_TYPE_ROOT) != 0 ||
555 nvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN,
559 nvlist_free(nvroot);
574 nvlist_free(nvroot);
[all...]
/freebsd-current/sys/contrib/openzfs/lib/libzutil/
H A Dzutil_import.c495 nvlist_t *ret = NULL, *config = NULL, *tmp = NULL, *nvtop, *nvroot; local
769 if (nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) != 0)
771 if (nvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE,
773 nvlist_add_uint64(nvroot, ZPOOL_CONFIG_ID, 0ULL) != 0 ||
774 nvlist_add_uint64(nvroot, ZPOOL_CONFIG_GUID, guid) != 0 ||
775 nvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN,
777 nvlist_free(nvroot);
791 if (fix_paths(hdl, nvroot, pl->names) != 0) {
792 nvlist_free(nvroot);
800 nvroot) !
1174 label_paths_impl(libpc_handle_t *hdl, nvlist_t *nvroot, uint64_t pool_guid, uint64_t vdev_guid, const char **path, const char **devid) argument
1221 nvlist_t *nvroot; local
1717 nvlist_t *nvroot = fnvlist_lookup_nvlist(src, local
2084 for_each_vdev_in_nvlist(nvlist_t *nvroot, pool_vdev_iter_f func, void *data) argument
[all...]
/freebsd-current/sys/contrib/openzfs/lib/libzpool/
H A Dutil.c136 nvlist_t *config, *nvroot; local
142 &nvroot) == 0);
146 show_vdev_stats(name, ZPOOL_CONFIG_CHILDREN, nvroot, 0);
147 show_vdev_stats(NULL, ZPOOL_CONFIG_L2CACHE, nvroot, 0);
148 show_vdev_stats(NULL, ZPOOL_CONFIG_SPARES, nvroot, 0);
/freebsd-current/cddl/usr.sbin/zfsd/
H A Dcase_file.cc518 nvlist_t *config, *nvroot, *parent_config; local
538 error = nvlist_lookup_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, &nvroot);
545 parent_config = find_parent(config, nvroot, m_vdevGUID);
561 nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, &spares,
1126 nvlist_t *nvroot, *newvd; local
1166 nvroot = NULL;
1169 if (nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) != 0
1173 if (nvroot != NULL)
1174 nvlist_free(nvroot);
1179 || nvlist_add_string(nvroot, ZPOOL_CONFIG_TYP
[all...]
/freebsd-current/sys/contrib/openzfs/cmd/zpool/
H A Dzpool_vdev.c216 nvlist_t *nvroot; local
247 &nvroot) == 0);
248 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES,
489 get_replication(nvlist_t *nvroot, boolean_t fatal) argument
505 verify(nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN,
824 nvlist_t *nvroot; local
827 &nvroot) == 0);
828 if ((current = get_replication(nvroot, B_FALSE)) == NULL)
1493 nvlist_t *nvroot, *nv, **top, **spares, **l2cache; local
1508 nvroot
1821 num_normal_vdevs(nvlist_t *nvroot) argument
[all...]
H A Dzpool_main.c459 zpool_collect_leaves(zpool_handle_t *zhp, nvlist_t *nvroot, nvlist_t *res)
465 (void) nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN,
469 char *path = zpool_vdev_name(g_zfs, zhp, nvroot,
775 nvlist_t *nvroot = fnvlist_lookup_nvlist(config,
777 zpool_collect_leaves(zhp, nvroot, vdevs);
1047 nvlist_t *nvroot;
1168 nvroot = make_root_vdev(zhp, props, !check_inuse,
1170 if (nvroot == NULL) {
1191 print_vdev_tree(zhp, NULL, nvroot, 0, "", name_flags);
1197 print_vdev_tree(zhp, NULL, nvroot,
457 zpool_collect_leaves(zpool_handle_t *zhp, nvlist_t *nvroot, nvlist_t *res) argument
773 nvlist_t *nvroot = fnvlist_lookup_nvlist(config, local
1045 nvlist_t *nvroot; local
1617 nvlist_t *nvroot = NULL; local
2183 nvlist_t *config, *nvroot; local
2935 nvlist_t *nvroot, *nvinfo; local
5317 nvlist_t *config, *nvroot; local
5428 nvlist_t *config, *nvroot, *nvx; local
6584 nvlist_t *config, *nvroot; local
6746 nvlist_t *nvroot; local
7593 nvlist_t *config, *nvroot; local
7891 nvlist_t *nvroot = fnvlist_lookup_nvlist(config, local
8239 print_rebuild_status(zpool_handle_t *zhp, nvlist_t *nvroot) argument
8304 check_rebuilding(nvlist_t *nvroot, uint64_t *rebuild_end_time) argument
8343 print_scan_status(zpool_handle_t *zhp, nvlist_t *nvroot) argument
8406 nvlist_t *config, *nvroot; local
8519 nvlist_t *nvroot = fnvlist_lookup_nvlist(config, local
8759 nvlist_t *config, *nvroot; local
11156 nvlist_t *config, *nvroot; local
[all...]
H A Dzpool_iter.c282 nvlist_t *config, *nvroot = NULL; local
286 &nvroot) == 0);
288 return (for_each_vdev_cb((void *) zhp, nvroot, func, data));
/freebsd-current/sys/contrib/openzfs/module/zfs/
H A Dspa_config.c417 nvlist_t *config, *nvroot; local
517 nvroot = vdev_config_generate(spa, vd, getstats, config_gen_flags);
518 fnvlist_add_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, nvroot);
519 nvlist_free(nvroot);
H A Dspa.c5885 nvlist_t *nvroot;
5896 nvroot = fnvlist_lookup_nvlist(config, ZPOOL_CONFIG_VDEV_TREE);
5900 fnvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES,
5902 VERIFY0(nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES,
5935 nvlist_t *nvroot;
5946 nvroot = fnvlist_lookup_nvlist(config, ZPOOL_CONFIG_VDEV_TREE);
5950 fnvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_L2CACHE,
5952 VERIFY0(nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_L2CACHE,
6145 spa_validate_aux_devs(spa_t *spa, nvlist_t *nvroot, uint64_t crtxg, int mode,
6159 if (nvlist_lookup_nvlist_array(nvroot, confi
5890 nvlist_t *nvroot; local
5940 nvlist_t *nvroot; local
6150 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
6219 spa_validate_aux(spa_t *spa, nvlist_t *nvroot, uint64_t crtxg, int mode) argument
6320 spa_create(const char *pool, nvlist_t *nvroot, nvlist_t *props, nvlist_t *zplprops, dsl_crypto_params_t *dcp) argument
6644 nvlist_t *nvroot; local
7168 spa_vdev_add(spa_t *spa, nvlist_t *nvroot, boolean_t check_ashift) argument
7346 spa_vdev_attach(spa_t *spa, uint64_t guid, nvlist_t *nvroot, int replacing, int rebuild) argument
9244 nvlist_t *nvroot; local
[all...]
H A Dvdev_draid.c1673 vdev_draid_spare_create(nvlist_t *nvroot, vdev_t *vd, uint64_t *ndraidp, argument
1697 error = nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES,
1749 (void) nvlist_remove_all(nvroot, ZPOOL_CONFIG_SPARES);
1750 fnvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES,
/freebsd-current/sys/contrib/openzfs/lib/libzfs/os/linux/
H A Dlibzfs_pool_os.c226 nvlist_t *nvroot = fnvlist_lookup_nvlist(zhp->zpool_config, local
230 start_block = find_start_block(nvroot);
/freebsd-current/sys/contrib/openzfs/include/
H A Dlibzutil.h269 int for_each_vdev_in_nvlist(nvlist_t *nvroot, pool_vdev_iter_f func,
/freebsd-current/sys/contrib/openzfs/lib/libzutil/os/linux/
H A Dzutil_import_os.c837 nvlist_t *nvroot = NULL; local
839 &nvroot) == 0);
840 for_each_vdev_in_nvlist(nvroot, sysfs_path_pool_vdev_iter_f, NULL);
/freebsd-current/sys/contrib/openzfs/cmd/
H A Dztest.c3005 nvlist_t *nvroot;
3013 nvroot = make_vdev_root("/dev/bogus", NULL, NULL, 0, 0, NULL, 0, 0, 1);
3015 spa_create("ztest_bad_file", nvroot, NULL, NULL, NULL));
3016 fnvlist_free(nvroot);
3021 nvroot = make_vdev_root("/dev/bogus", NULL, NULL, 0, 0, NULL, 0, 2, 1);
3023 spa_create("ztest_bad_mirror", nvroot, NULL, NULL, NULL));
3024 fnvlist_free(nvroot);
3028 * what's in the nvroot; we should fail with EEXIST.
3031 nvroot = make_vdev_root("/dev/bogus", NULL, NULL, 0, 0, NULL, 0, 0, 1);
3033 spa_create(zo->zo_pool, nvroot, NUL
3014 nvlist_t *nvroot; local
3143 nvlist_t *nvroot, *props; local
3313 nvlist_t *nvroot; local
3402 nvlist_t *nvroot; local
3546 nvlist_t *nvroot = make_vdev_root(NULL, aux, NULL, local
8527 nvlist_t *nvroot, *props; local
[all...]
/freebsd-current/sys/contrib/openzfs/include/sys/
H A Dspa.h748 extern int spa_create(const char *pool, nvlist_t *nvroot, nvlist_t *props,
788 extern int spa_vdev_add(spa_t *spa, nvlist_t *nvroot, boolean_t ashift_check);
789 extern int spa_vdev_attach(spa_t *spa, uint64_t guid, nvlist_t *nvroot,

Completed in 399 milliseconds