| /src/external/cddl/osnet/dist/common/zfs/ |
| zfs_ioctl_compat.c | 957 nvlist_t *nvroot = NULL; local 969 &nvroot) == 0) 970 zfs_ioctl_compat_fix_stats_nvlist(nvroot);
|
| /src/external/cddl/osnet/dist/lib/libzpool/common/ |
| util.c | 140 nvlist_t *config, *nvroot; local 146 &nvroot) == 0); 150 show_vdev_stats(name, ZPOOL_CONFIG_CHILDREN, nvroot, 0); 151 show_vdev_stats(NULL, ZPOOL_CONFIG_L2CACHE, nvroot, 0); 152 show_vdev_stats(NULL, ZPOOL_CONFIG_SPARES, nvroot, 0);
|
| /src/external/cddl/osnet/dist/lib/libzfs/common/ |
| libzfs_status.c | 198 nvlist_t *nvroot; local 211 &nvroot) == 0); 212 verify(nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_VDEV_STATS, 220 (void) nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_SCAN_STATS, 284 find_vdev_problem(nvroot, vdev_faulted, B_TRUE)) 288 find_vdev_problem(nvroot, vdev_missing, B_TRUE)) 292 find_vdev_problem(nvroot, vdev_broken, B_TRUE)) 314 if (find_vdev_problem(nvroot, vdev_faulted, B_TRUE)) 316 if (find_vdev_problem(nvroot, vdev_missing, B_TRUE)) 318 if (find_vdev_problem(nvroot, vdev_broken, B_TRUE) [all...] |
| libzfs_import.c | 450 nvlist_t *ret = NULL, *config = NULL, *tmp = NULL, *nvtop, *nvroot; local 717 if (nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) != 0) 719 if (nvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE, 721 nvlist_add_uint64(nvroot, ZPOOL_CONFIG_ID, 0ULL) != 0 || 722 nvlist_add_uint64(nvroot, ZPOOL_CONFIG_GUID, guid) != 0 || 723 nvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, 725 nvlist_free(nvroot); 739 if (fix_paths(nvroot, pl->names) != 0) { 740 nvlist_free(nvroot); 748 nvroot) != 0) 1611 nvlist_t *nvroot; local 1719 nvlist_t *nvroot; local [all...] |
| libzfs_pool.c | 250 nvlist_t *nvroot; local 351 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0); 352 verify(nvlist_lookup_uint64_array(nvroot, 1099 zpool_create(libzfs_handle_t *hdl, const char *pool, nvlist_t *nvroot, 1114 if (zcmd_write_conf_nvlist(hdl, &zc, nvroot) != 0) 1275 zpool_add(zpool_handle_t *zhp, nvlist_t *nvroot) 1289 nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, 1298 nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_L2CACHE, 1305 if (zcmd_write_conf_nvlist(hdl, &zc, nvroot) != 0) 1868 nvlist_t *nvroot; local 2134 nvlist_t *search, *nvroot, *ret; local 2170 nvlist_t *nvroot, *search, *ret; local 3935 nvlist_t *nvroot; local 4061 nvlist_t *config, *nvroot; local [all...] |
| /src/external/cddl/osnet/dist/uts/common/fs/zfs/ |
| spa_config.c | 150 nvlist_t *nvroot = NULL; local 159 if (nvlist_lookup_nvlist(nvl, ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0) 160 spa_config_clean(nvroot); 254 nvlist_t *nvroot = NULL; local 283 if (nvlist_lookup_nvlist(nvl, spa->spa_name, &nvroot) == 0) 284 spa_config_clean(nvroot); 381 nvlist_t *config, *nvroot; local 473 nvroot = vdev_config_generate(spa, vd, getstats, config_gen_flags); 474 fnvlist_add_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, nvroot); 475 nvlist_free(nvroot); [all...] |
| spa.c | 2303 nvlist_t *nvroot = NULL; local 2324 if (nvlist_lookup_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, &nvroot)) 2347 error = spa_config_parse(spa, &rvd, nvroot, NULL, 0, parse); 3293 nvlist_t *nvroot; local 3305 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0); 3309 VERIFY(nvlist_add_nvlist_array(nvroot, 3311 VERIFY(nvlist_lookup_nvlist_array(nvroot, 3342 nvlist_t *nvroot; local 3354 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0); 3358 VERIFY(nvlist_add_nvlist_array(nvroot, 3942 nvlist_t *nvtop, *nvroot; local 4142 nvlist_t *best_cfg, *nvtop, *nvroot; local 4342 nvlist_t *nvroot; local 6424 nvlist_t *nvroot; local [all...] |
| /src/external/cddl/osnet/dist/cmd/zpool/ |
| zpool_vdev.c | 600 get_replication(nvlist_t *nvroot, boolean_t fatal) 615 verify(nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, 867 nvlist_t *nvroot; local 870 &nvroot) == 0); 871 if ((current = get_replication(nvroot, B_FALSE)) == NULL) 1053 nvlist_t *nvroot; local 1076 &nvroot) == 0); 1077 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, 1228 nvlist_t *nvroot, *nv, **top, **spares, **l2cache; local 1400 * Finally, create nvroot and add all top-level vdevs to it [all...] |
| zpool_main.c | 499 nvlist_t *nvroot; local 550 nvroot = make_root_vdev(zhp, force, !force, B_FALSE, dryrun, 552 if (nvroot == NULL) { 568 print_vdev_tree(zhp, NULL, nvroot, 0, B_FALSE); 573 print_vdev_tree(zhp, NULL, nvroot, 0, B_TRUE); 574 } else if (num_logs(nvroot) > 0) { 575 print_vdev_tree(zhp, "logs", nvroot, 0, B_TRUE); 580 ret = (zpool_add(zhp, nvroot) != 0); 583 nvlist_free(nvroot); 803 nvlist_t *nvroot = NULL local 1308 nvlist_t *config, *nvroot; local 1629 nvlist_t *nvroot; local 2558 nvlist_t *config, *nvroot; local 3082 nvlist_t *nvroot; local 3208 nvlist_t *nvroot; local 4140 nvlist_t *config, *nvroot; local [all...] |
| /src/external/cddl/osnet/dist/cmd/ztest/ |
| ztest.c | 2350 nvlist_t *nvroot; local 2355 nvroot = make_vdev_root("/dev/bogus", NULL, NULL, 0, 0, 0, 0, 0, 1); 2357 spa_create("ztest_bad_file", nvroot, NULL, NULL)); 2358 nvlist_free(nvroot); 2363 nvroot = make_vdev_root("/dev/bogus", NULL, NULL, 0, 0, 0, 0, 2, 1); 2365 spa_create("ztest_bad_mirror", nvroot, NULL, NULL)); 2366 nvlist_free(nvroot); 2370 * what's in the nvroot; we should fail with EEXIST. 2373 nvroot = make_vdev_root("/dev/bogus", NULL, NULL, 0, 0, 0, 0, 0, 1); 2374 VERIFY3U(EEXIST, ==, spa_create(zo->zo_pool, nvroot, NULL, NULL)) 2390 nvlist_t *nvroot, *props; local 2502 nvlist_t *nvroot; local 2620 nvlist_t *nvroot = make_vdev_root(NULL, aux, NULL, local 5959 nvlist_t *nvroot, *props; local [all...] |