| /freebsd-10-stable/cddl/contrib/opensolaris/lib/libzfs/common/ |
| 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 …]
|
| D | libzfs_import.c | 443 nvlist_t *ret = NULL, *config = NULL, *tmp = NULL, *nvtop, *nvroot; in get_configs() local 710 if (nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) != 0) in get_configs() 712 if (nvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE, in get_configs() 714 nvlist_add_uint64(nvroot, ZPOOL_CONFIG_ID, 0ULL) != 0 || in get_configs() 715 nvlist_add_uint64(nvroot, ZPOOL_CONFIG_GUID, guid) != 0 || in get_configs() 716 nvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, in get_configs() 718 nvlist_free(nvroot); in get_configs() 732 if (fix_paths(nvroot, pl->names) != 0) { in get_configs() 733 nvlist_free(nvroot); in get_configs() 741 nvroot) != 0) { in get_configs() [all …]
|
| 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() 1110 zpool_create(libzfs_handle_t *hdl, const char *pool, nvlist_t *nvroot, in zpool_create() argument 1125 if (zcmd_write_conf_nvlist(hdl, &zc, nvroot) != 0) in zpool_create() 1286 zpool_add(zpool_handle_t *zhp, nvlist_t *nvroot) in zpool_add() argument 1300 nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, in zpool_add() 1309 nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_L2CACHE, in zpool_add() 1316 if (zcmd_write_conf_nvlist(hdl, &zc, nvroot) != 0) in zpool_add() 1879 nvlist_t *nvroot; in zpool_scan() local [all …]
|
| /freebsd-10-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
| D | spa_config.c | 147 nvlist_t *nvroot = NULL; in spa_config_clean() local 156 if (nvlist_lookup_nvlist(nvl, ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0) in spa_config_clean() 157 spa_config_clean(nvroot); in spa_config_clean() 257 nvlist_t *nvroot = NULL; in spa_config_sync() local 294 if (nvlist_lookup_nvlist(nvl, pool_name, &nvroot) == 0) in spa_config_sync() 295 spa_config_clean(nvroot); in spa_config_sync() 392 nvlist_t *config, *nvroot; in spa_config_generate() local 498 nvroot = vdev_config_generate(spa, vd, getstats, 0); in spa_config_generate() 499 VERIFY(nvlist_add_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, nvroot) == 0); in spa_config_generate() 500 nvlist_free(nvroot); in spa_config_generate()
|
| D | spa.c | 2244 nvlist_t *nvroot = NULL; in spa_load_impl() local 2265 if (nvlist_lookup_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, &nvroot)) in spa_load_impl() 2288 error = spa_config_parse(spa, &rvd, nvroot, NULL, 0, parse); in spa_load_impl() 3201 nvlist_t *nvroot; in spa_add_spares() local 3213 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0); in spa_add_spares() 3217 VERIFY(nvlist_add_nvlist_array(nvroot, in spa_add_spares() 3219 VERIFY(nvlist_lookup_nvlist_array(nvroot, in spa_add_spares() 3250 nvlist_t *nvroot; in spa_add_l2cache() local 3262 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0); in spa_add_l2cache() 3266 VERIFY(nvlist_add_nvlist_array(nvroot, in spa_add_l2cache() [all …]
|
| /freebsd-10-stable/cddl/contrib/opensolaris/lib/libzpool/common/ |
| D | util.c | 117 nvlist_t *config, *nvroot; in show_pool_stats() local 123 &nvroot) == 0); in show_pool_stats() 127 show_vdev_stats(name, ZPOOL_CONFIG_CHILDREN, nvroot, 0); in show_pool_stats() 128 show_vdev_stats(NULL, ZPOOL_CONFIG_L2CACHE, nvroot, 0); in show_pool_stats() 129 show_vdev_stats(NULL, ZPOOL_CONFIG_SPARES, nvroot, 0); in show_pool_stats()
|
| /freebsd-10-stable/cddl/contrib/opensolaris/cmd/zpool/ |
| D | zpool_vdev.c | 582 get_replication(nvlist_t *nvroot, boolean_t fatal) in get_replication() argument 597 verify(nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, in get_replication() 860 nvlist_t *nvroot; in check_replication() local 863 &nvroot) == 0); in check_replication() 864 if ((current = get_replication(nvroot, B_FALSE)) == NULL) in check_replication() 1046 nvlist_t *nvroot; in is_spare() local 1069 &nvroot) == 0); in is_spare() 1070 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, in is_spare() 1221 nvlist_t *nvroot, *nv, **top, **spares, **l2cache; in construct_spec() local 1395 verify(nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) == 0); in construct_spec() [all …]
|
| D | zpool_main.c | 515 nvlist_t *nvroot; in zpool_do_add() local 566 nvroot = make_root_vdev(zhp, force, !force, B_FALSE, dryrun, in zpool_do_add() 568 if (nvroot == NULL) { in zpool_do_add() 584 print_vdev_tree(zhp, NULL, nvroot, 0, B_FALSE); in zpool_do_add() 589 print_vdev_tree(zhp, NULL, nvroot, 0, B_TRUE); in zpool_do_add() 590 } else if (num_logs(nvroot) > 0) { in zpool_do_add() 591 print_vdev_tree(zhp, "logs", nvroot, 0, B_TRUE); in zpool_do_add() 596 ret = (zpool_add(zhp, nvroot) != 0); in zpool_do_add() 599 nvlist_free(nvroot); in zpool_do_add() 820 nvlist_t *nvroot = NULL; in zpool_do_create() local [all …]
|
| /freebsd-10-stable/cddl/contrib/opensolaris/cmd/ztest/ |
| D | ztest.c | 2359 nvlist_t *nvroot; in ztest_spa_create_destroy() local 2364 nvroot = make_vdev_root("/dev/bogus", NULL, NULL, 0, 0, 0, 0, 0, 1); in ztest_spa_create_destroy() 2366 spa_create("ztest_bad_file", nvroot, NULL, NULL)); in ztest_spa_create_destroy() 2367 nvlist_free(nvroot); in ztest_spa_create_destroy() 2372 nvroot = make_vdev_root("/dev/bogus", NULL, NULL, 0, 0, 0, 0, 2, 1); in ztest_spa_create_destroy() 2374 spa_create("ztest_bad_mirror", nvroot, NULL, NULL)); in ztest_spa_create_destroy() 2375 nvlist_free(nvroot); in ztest_spa_create_destroy() 2382 nvroot = make_vdev_root("/dev/bogus", NULL, NULL, 0, 0, 0, 0, 0, 1); in ztest_spa_create_destroy() 2383 VERIFY3U(EEXIST, ==, spa_create(zo->zo_pool, nvroot, NULL, NULL)); in ztest_spa_create_destroy() 2384 nvlist_free(nvroot); in ztest_spa_create_destroy() [all …]
|
| /freebsd-10-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/ |
| 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,
|
| /freebsd-10-stable/sys/cddl/contrib/opensolaris/common/zfs/ |
| 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()
|