| /netbsd-src/external/cddl/osnet/dist/lib/libzfs/common/ |
| H A D | libzfs_status.c | 198 nvlist_t *nvroot; in check_status() local 211 &nvroot) == 0); in check_status() 212 verify(nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_VDEV_STATS, in check_status() 220 (void) nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_SCAN_STATS, in check_status() 284 find_vdev_problem(nvroot, vdev_faulted, B_TRUE)) in check_status() 288 find_vdev_problem(nvroot, vdev_missing, B_TRUE)) in check_status() 292 find_vdev_problem(nvroot, vdev_broken, B_TRUE)) in check_status() 314 if (find_vdev_problem(nvroot, vdev_faulted, B_TRUE)) in check_status() 316 if (find_vdev_problem(nvroot, vdev_missing, B_TRUE)) in check_status() 318 if (find_vdev_problem(nvroot, vdev_broken, B_TRUE)) in check_status() [all …]
|
| H A D | libzfs_import.c | 449 nvlist_t *ret = NULL, *config = NULL, *tmp = NULL, *nvtop, *nvroot; in get_configs() local 716 if (nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) != 0) in get_configs() 718 if (nvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE, in get_configs() 720 nvlist_add_uint64(nvroot, ZPOOL_CONFIG_ID, 0ULL) != 0 || in get_configs() 721 nvlist_add_uint64(nvroot, ZPOOL_CONFIG_GUID, guid) != 0 || in get_configs() 722 nvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, in get_configs() 724 nvlist_free(nvroot); in get_configs() 738 if (fix_paths(nvroot, pl->names) != 0) { in get_configs() 739 nvlist_free(nvroot); in get_configs() 747 nvroot) != 0) { in get_configs() [all …]
|
| H A D | libzfs_pool.c | 250 nvlist_t *nvroot; in zpool_get_prop() local 351 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0); in zpool_get_prop() 352 verify(nvlist_lookup_uint64_array(nvroot, in zpool_get_prop() 1099 zpool_create(libzfs_handle_t *hdl, const char *pool, nvlist_t *nvroot, in zpool_create() argument 1114 if (zcmd_write_conf_nvlist(hdl, &zc, nvroot) != 0) in zpool_create() 1275 zpool_add(zpool_handle_t *zhp, nvlist_t *nvroot) in zpool_add() argument 1289 nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, in zpool_add() 1298 nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_L2CACHE, in zpool_add() 1305 if (zcmd_write_conf_nvlist(hdl, &zc, nvroot) != 0) in zpool_add() 1868 nvlist_t *nvroot; in zpool_scan() local [all …]
|
| /netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/ |
| H A D | spa_config.c | 150 nvlist_t *nvroot = NULL; in spa_config_clean() local 159 if (nvlist_lookup_nvlist(nvl, ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0) in spa_config_clean() 160 spa_config_clean(nvroot); in spa_config_clean() 254 nvlist_t *nvroot = NULL; in spa_config_sync() local 283 if (nvlist_lookup_nvlist(nvl, spa->spa_name, &nvroot) == 0) in spa_config_sync() 284 spa_config_clean(nvroot); in spa_config_sync() 381 nvlist_t *config, *nvroot; in spa_config_generate() local 473 nvroot = vdev_config_generate(spa, vd, getstats, config_gen_flags); in spa_config_generate() 474 fnvlist_add_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, nvroot); in spa_config_generate() 475 nvlist_free(nvroot); in spa_config_generate()
|
| H A D | spa.c | 2303 nvlist_t *nvroot = NULL; in spa_load_impl() local 2324 if (nvlist_lookup_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, &nvroot)) in spa_load_impl() 2347 error = spa_config_parse(spa, &rvd, nvroot, NULL, 0, parse); in spa_load_impl() 3293 nvlist_t *nvroot; in spa_add_spares() local 3305 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0); in spa_add_spares() 3309 VERIFY(nvlist_add_nvlist_array(nvroot, in spa_add_spares() 3311 VERIFY(nvlist_lookup_nvlist_array(nvroot, in spa_add_spares() 3342 nvlist_t *nvroot; in spa_add_l2cache() local 3354 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0); in spa_add_l2cache() 3358 VERIFY(nvlist_add_nvlist_array(nvroot, in spa_add_l2cache() [all …]
|
| /netbsd-src/external/cddl/osnet/dist/lib/libzpool/common/ |
| H A D | util.c | 140 nvlist_t *config, *nvroot; in show_pool_stats() local 146 &nvroot) == 0); in show_pool_stats() 150 show_vdev_stats(name, ZPOOL_CONFIG_CHILDREN, nvroot, 0); in show_pool_stats() 151 show_vdev_stats(NULL, ZPOOL_CONFIG_L2CACHE, nvroot, 0); in show_pool_stats() 152 show_vdev_stats(NULL, ZPOOL_CONFIG_SPARES, nvroot, 0); in show_pool_stats()
|
| /netbsd-src/external/cddl/osnet/dist/cmd/zpool/ |
| H A D | zpool_vdev.c | 600 get_replication(nvlist_t *nvroot, boolean_t fatal) in get_replication() argument 615 verify(nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, in get_replication() 867 nvlist_t *nvroot; in check_replication() local 870 &nvroot) == 0); in check_replication() 871 if ((current = get_replication(nvroot, B_FALSE)) == NULL) in check_replication() 1053 nvlist_t *nvroot; in is_spare() local 1076 &nvroot) == 0); in is_spare() 1077 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, in is_spare() 1228 nvlist_t *nvroot, *nv, **top, **spares, **l2cache; in construct_spec() local 1402 verify(nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) == 0); in construct_spec() [all …]
|
| H A D | zpool_main.c | 499 nvlist_t *nvroot; in zpool_do_add() local 550 nvroot = make_root_vdev(zhp, force, !force, B_FALSE, dryrun, in zpool_do_add() 552 if (nvroot == NULL) { in zpool_do_add() 568 print_vdev_tree(zhp, NULL, nvroot, 0, B_FALSE); in zpool_do_add() 573 print_vdev_tree(zhp, NULL, nvroot, 0, B_TRUE); in zpool_do_add() 574 } else if (num_logs(nvroot) > 0) { in zpool_do_add() 575 print_vdev_tree(zhp, "logs", nvroot, 0, B_TRUE); in zpool_do_add() 580 ret = (zpool_add(zhp, nvroot) != 0); in zpool_do_add() 583 nvlist_free(nvroot); in zpool_do_add() 803 nvlist_t *nvroot = NULL; in zpool_do_create() local [all …]
|
| /netbsd-src/external/cddl/osnet/dist/cmd/ztest/ |
| H A D | ztest.c | 2350 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 …]
|
| /netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/sys/ |
| H A D | spa.h | 670 extern int spa_vdev_add(spa_t *spa, nvlist_t *nvroot); 671 extern int spa_vdev_attach(spa_t *spa, uint64_t guid, nvlist_t *nvroot,
|
| /netbsd-src/external/cddl/osnet/dist/common/zfs/ |
| H A D | zfs_ioctl_compat.c | 956 nvlist_t *nvroot = NULL; in zfs_ioctl_compat_fix_stats_nvlist() local 968 &nvroot) == 0) in zfs_ioctl_compat_fix_stats_nvlist() 969 zfs_ioctl_compat_fix_stats_nvlist(nvroot); in zfs_ioctl_compat_fix_stats_nvlist()
|