Home
last modified time | relevance | path

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

/titanic_44/usr/src/lib/libzfs/common/
H A Dlibzfs_status.c187 nvlist_t *nvroot; in check_status() local
200 &nvroot) == 0); in check_status()
201 verify(nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_VDEV_STATS, in check_status()
209 (void) nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_SCAN_STATS, in check_status()
273 find_vdev_problem(nvroot, vdev_faulted)) in check_status()
277 find_vdev_problem(nvroot, vdev_missing)) in check_status()
281 find_vdev_problem(nvroot, vdev_broken)) in check_status()
303 if (find_vdev_problem(nvroot, vdev_faulted)) in check_status()
305 if (find_vdev_problem(nvroot, vdev_missing)) in check_status()
307 if (find_vdev_problem(nvroot, vdev_broken)) in check_status()
[all …]
H A Dlibzfs_import.c441 nvlist_t *ret = NULL, *config = NULL, *tmp, *nvtop, *nvroot; in get_configs() local
708 if (nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) != 0) in get_configs()
710 if (nvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE, in get_configs()
712 nvlist_add_uint64(nvroot, ZPOOL_CONFIG_ID, 0ULL) != 0 || in get_configs()
713 nvlist_add_uint64(nvroot, ZPOOL_CONFIG_GUID, guid) != 0 || in get_configs()
714 nvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, in get_configs()
716 nvlist_free(nvroot); in get_configs()
730 if (fix_paths(nvroot, pl->names) != 0) { in get_configs()
731 nvlist_free(nvroot); in get_configs()
739 nvroot) != 0) { in get_configs()
[all …]
H A Dlibzfs_pool.c220 nvlist_t *nvroot; in zpool_get_prop() local
320 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0); in zpool_get_prop()
321 verify(nvlist_lookup_uint64_array(nvroot, in zpool_get_prop()
1060 zpool_create(libzfs_handle_t *hdl, const char *pool, nvlist_t *nvroot, in zpool_create() argument
1075 if (zcmd_write_conf_nvlist(hdl, &zc, nvroot) != 0) in zpool_create()
1221 zpool_add(zpool_handle_t *zhp, nvlist_t *nvroot) in zpool_add() argument
1235 nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, in zpool_add()
1244 nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_L2CACHE, in zpool_add()
1251 if (zcmd_write_conf_nvlist(hdl, &zc, nvroot) != 0) in zpool_add()
1809 nvlist_t *nvroot; in zpool_scan() local
[all …]
/titanic_44/usr/src/lib/libzpool/common/
H A Dutil.c115 nvlist_t *config, *nvroot; in show_pool_stats() local
121 &nvroot) == 0); in show_pool_stats()
125 show_vdev_stats(name, ZPOOL_CONFIG_CHILDREN, nvroot, 0); in show_pool_stats()
126 show_vdev_stats(NULL, ZPOOL_CONFIG_L2CACHE, nvroot, 0); in show_pool_stats()
127 show_vdev_stats(NULL, ZPOOL_CONFIG_SPARES, nvroot, 0); in show_pool_stats()
/titanic_44/usr/src/cmd/syseventd/modules/zfs_mod/
H A Dzfs_mod.c108 nvlist_t *nvroot; in zfs_toplevel_state() local
113 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0); in zfs_toplevel_state()
114 verify(nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_VDEV_STATS, in zfs_toplevel_state()
153 nvlist_t *nvroot, *newvd; in zfs_process_add() local
234 if (nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) != 0) in zfs_process_add()
238 nvlist_free(nvroot); in zfs_process_add()
247 nvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE, VDEV_TYPE_ROOT) != 0 || in zfs_process_add()
248 nvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, &newvd, in zfs_process_add()
251 nvlist_free(nvroot); in zfs_process_add()
257 (void) zpool_vdev_attach(zhp, fullpath, path, nvroot, B_TRUE); in zfs_process_add()
[all …]
/titanic_44/usr/src/cmd/fm/modules/common/zfs-retire/
H A Dzfs_retire.c145 nvlist_t *config, *nvroot; in find_by_guid() local
157 &nvroot) != 0) { in find_by_guid()
163 if ((*vdevp = find_vdev(zhdl, nvroot, NULL, in find_by_guid()
178 nvlist_t *nvroot; in search_pool() local
182 &nvroot) != 0) { in search_pool()
187 if ((cbp->cb_vdev = find_vdev(zpool_get_handle(zhp), nvroot, in search_pool()
221 nvlist_t *config, *nvroot, *replacement; in replace_with_spare() local
228 &nvroot) != 0) in replace_with_spare()
234 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, in replace_with_spare()
/titanic_44/usr/src/cmd/zpool/
H A Dzpool_vdev.c544 get_replication(nvlist_t *nvroot, boolean_t fatal) in get_replication() argument
557 verify(nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, in get_replication()
806 nvlist_t *nvroot; in check_replication() local
809 &nvroot) == 0); in check_replication()
810 if ((current = get_replication(nvroot, B_FALSE)) == NULL) in check_replication()
990 nvlist_t *nvroot; in is_spare() local
1013 &nvroot) == 0); in is_spare()
1014 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, in is_spare()
1163 nvlist_t *nvroot, *nv, **top, **spares, **l2cache; in construct_spec() local
1337 verify(nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) == 0); in construct_spec()
[all …]
H A Dzpool_main.c490 nvlist_t *nvroot; in zpool_do_add() local
541 nvroot = make_root_vdev(zhp, force, !force, B_FALSE, dryrun, in zpool_do_add()
543 if (nvroot == NULL) { in zpool_do_add()
559 print_vdev_tree(zhp, NULL, nvroot, 0, B_FALSE); in zpool_do_add()
564 print_vdev_tree(zhp, NULL, nvroot, 0, B_TRUE); in zpool_do_add()
565 } else if (num_logs(nvroot) > 0) { in zpool_do_add()
566 print_vdev_tree(zhp, "logs", nvroot, 0, B_TRUE); in zpool_do_add()
571 ret = (zpool_add(zhp, nvroot) != 0); in zpool_do_add()
574 nvlist_free(nvroot); in zpool_do_add()
647 nvlist_t *nvroot = NULL; in zpool_do_create() local
[all …]
/titanic_44/usr/src/cmd/fm/schemes/zfs/
H A Dscheme.c134 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()
/titanic_44/usr/src/uts/common/fs/zfs/
H A Dspa.c2155 nvlist_t *nvroot = NULL; in spa_load_impl() local
2176 if (nvlist_lookup_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, &nvroot)) in spa_load_impl()
2199 error = spa_config_parse(spa, &rvd, nvroot, NULL, 0, parse); in spa_load_impl()
3092 nvlist_t *nvroot; in spa_add_spares() local
3104 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0); in spa_add_spares()
3108 VERIFY(nvlist_add_nvlist_array(nvroot, in spa_add_spares()
3110 VERIFY(nvlist_lookup_nvlist_array(nvroot, in spa_add_spares()
3141 nvlist_t *nvroot; in spa_add_l2cache() local
3153 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0); in spa_add_l2cache()
3157 VERIFY(nvlist_add_nvlist_array(nvroot, in spa_add_l2cache()
[all …]
H A Dspa_config.c361 nvlist_t *config, *nvroot; in spa_config_generate() local
452 nvroot = vdev_config_generate(spa, vd, getstats, 0); in spa_config_generate()
453 VERIFY(nvlist_add_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, nvroot) == 0); in spa_config_generate()
454 nvlist_free(nvroot); in spa_config_generate()
/titanic_44/usr/src/cmd/ztest/
H A Dztest.c2350 nvlist_t *nvroot; in ztest_spa_create_destroy() local
2355 nvroot = make_vdev_root("/dev/bogus", NULL, NULL, 0, 0, 0, 0, 0, 1); in ztest_spa_create_destroy()
2357 spa_create("ztest_bad_file", nvroot, NULL, NULL)); in ztest_spa_create_destroy()
2358 nvlist_free(nvroot); in ztest_spa_create_destroy()
2363 nvroot = make_vdev_root("/dev/bogus", NULL, NULL, 0, 0, 0, 0, 2, 1); in ztest_spa_create_destroy()
2365 spa_create("ztest_bad_mirror", nvroot, NULL, NULL)); in ztest_spa_create_destroy()
2366 nvlist_free(nvroot); in ztest_spa_create_destroy()
2373 nvroot = make_vdev_root("/dev/bogus", NULL, NULL, 0, 0, 0, 0, 0, 1); in ztest_spa_create_destroy()
2374 VERIFY3U(EEXIST, ==, spa_create(zo->zo_pool, nvroot, NULL, NULL)); in ztest_spa_create_destroy()
2375 nvlist_free(nvroot); in ztest_spa_create_destroy()
[all …]
/titanic_44/usr/src/cmd/power/
H A Dhandlers.c1006 nvlist_t *config, *nvroot; in ztop() local
1034 &nvroot) != 0) { in ztop()
1039 verify(nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, in ztop()
/titanic_44/usr/src/uts/common/fs/zfs/sys/
H A Dspa.h640 extern int spa_vdev_add(spa_t *spa, nvlist_t *nvroot);
641 extern int spa_vdev_attach(spa_t *spa, uint64_t guid, nvlist_t *nvroot,