/freebsd-12-stable/cddl/contrib/opensolaris/lib/libzfs/common/ |
H A D | libzfs_status.c | 214 nvlist_t *nvroot; local 228 &nvroot) == 0); 229 verify(nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_VDEV_STATS, 237 (void) nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_SCAN_STATS, 327 find_vdev_problem(nvroot, vdev_faulted, B_TRUE)) 331 find_vdev_problem(nvroot, vdev_missing, B_TRUE)) 335 find_vdev_problem(nvroot, vdev_broken, B_TRUE)) 357 if (find_vdev_problem(nvroot, vdev_faulted, B_TRUE)) 359 if (find_vdev_problem(nvroot, vdev_missing, B_TRUE)) 361 if (find_vdev_problem(nvroot, vdev_broke [all...] |
H A D | libzfs_import.c | 442 nvlist_t *ret = NULL, *config = NULL, *tmp = NULL, *nvtop, *nvroot; local 709 if (nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) != 0) 711 if (nvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE, 713 nvlist_add_uint64(nvroot, ZPOOL_CONFIG_ID, 0ULL) != 0 || 714 nvlist_add_uint64(nvroot, ZPOOL_CONFIG_GUID, guid) != 0 || 715 nvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, 717 nvlist_free(nvroot); 731 if (fix_paths(nvroot, pl->names) != 0) { 732 nvlist_free(nvroot); 740 nvroot) ! 1731 nvlist_t *nvroot; local 1839 nvlist_t *nvroot; local [all...] |
H A D | libzfs_pool.c | 253 nvlist_t *nvroot; local 356 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0); 357 verify(nvlist_lookup_uint64_array(nvroot, 1133 zpool_has_special_vdev(nvlist_t *nvroot) argument 1138 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, &child, 1159 zpool_create(libzfs_handle_t *hdl, const char *pool, nvlist_t *nvroot, argument 1174 if (zcmd_write_conf_nvlist(hdl, &zc, nvroot) != 0) 1201 !zpool_has_special_vdev(nvroot)) { 1388 zpool_add(zpool_handle_t *zhp, nvlist_t *nvroot) argument 1402 nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARE 2047 nvlist_t *nvroot; local 2411 nvlist_t *search, *nvroot, *ret; local 2450 nvlist_t *nvroot, *search, *ret; local 2884 zpool_vdev_attach(zpool_handle_t *zhp, const char *old_disk, const char *new_disk, nvlist_t *nvroot, int replacing) argument 4336 nvlist_t *nvroot; local 4544 nvlist_t *config, *nvroot; local [all...] |
/freebsd-12-stable/cddl/contrib/opensolaris/lib/libzpool/common/ |
H A D | util.c | 126 nvlist_t *config, *nvroot; local 132 &nvroot) == 0); 136 show_vdev_stats(name, ZPOOL_CONFIG_CHILDREN, nvroot, 0); 137 show_vdev_stats(NULL, ZPOOL_CONFIG_L2CACHE, nvroot, 0); 138 show_vdev_stats(NULL, ZPOOL_CONFIG_SPARES, nvroot, 0);
|
/freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | spa_config.c | 148 nvlist_t *nvroot = NULL; local 157 if (nvlist_lookup_nvlist(nvl, ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0) 158 spa_config_clean(nvroot); 253 nvlist_t *nvroot = NULL; local 289 if (nvlist_lookup_nvlist(nvl, pool_name, &nvroot) == 0) 290 spa_config_clean(nvroot); 388 nvlist_t *config, *nvroot; local 490 nvroot = vdev_config_generate(spa, vd, getstats, config_gen_flags); 491 fnvlist_add_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, nvroot); 492 nvlist_free(nvroot); [all...] |
H A D | spa.c | 4703 nvlist_t *nvroot; local 4715 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0); 4719 VERIFY(nvlist_add_nvlist_array(nvroot, 4721 VERIFY(nvlist_lookup_nvlist_array(nvroot, 4752 nvlist_t *nvroot; local 4764 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0); 4768 VERIFY(nvlist_add_nvlist_array(nvroot, 4770 VERIFY(nvlist_lookup_nvlist_array(nvroot, 4966 spa_validate_aux_devs(spa_t *spa, nvlist_t *nvroot, uint64_t crtxg, int mode, argument 4980 if (nvlist_lookup_nvlist_array(nvroot, confi 5035 spa_validate_aux(spa_t *spa, nvlist_t *nvroot, uint64_t crtxg, int mode) argument 5124 spa_create(const char *pool, nvlist_t *nvroot, nvlist_t *props, nvlist_t *zplprops) argument 5415 nvlist_t *nvtop, *nvroot; local 5618 nvlist_t *best_cfg, *nvtop, *nvroot; local 5827 nvlist_t *nvroot; local 6286 spa_vdev_add(spa_t *spa, nvlist_t *nvroot) argument 6431 spa_vdev_attach(spa_t *spa, uint64_t guid, nvlist_t *nvroot, int replacing) argument 7908 nvlist_t *nvroot; local [all...] |
/freebsd-12-stable/cddl/usr.sbin/zfsd/ |
H A D | case_file.cc | 490 nvlist_t *config, *nvroot, *parent_config; local 511 error = nvlist_lookup_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, &nvroot); 518 parent_config = find_parent(config, nvroot, m_vdevGUID); 534 nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, &spares, 1054 nvlist_t *nvroot, *newvd; local 1094 nvroot = NULL; 1097 if (nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) != 0 1101 if (nvroot != NULL) 1102 nvlist_free(nvroot); 1107 || nvlist_add_string(nvroot, ZPOOL_CONFIG_TYP [all...] |
/freebsd-12-stable/cddl/contrib/opensolaris/cmd/zpool/ |
H A D | zpool_vdev.c | 602 get_replication(nvlist_t *nvroot, boolean_t fatal) argument 618 verify(nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, 914 nvlist_t *nvroot; local 917 &nvroot) == 0); 918 if ((current = get_replication(nvroot, B_FALSE)) == NULL) 1147 nvlist_t *nvroot; local 1170 &nvroot) == 0); 1171 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, 1329 nvlist_t *nvroot, *nv, **top, **spares, **l2cache; local 1547 * Finally, create nvroot an 1634 num_normal_vdevs(nvlist_t *nvroot) argument [all...] |
H A D | zpool_main.c | 558 nvlist_t *nvroot; local 626 nvroot = make_root_vdev(zhp, force, !force, B_FALSE, dryrun, 628 if (nvroot == NULL) { 645 print_vdev_tree(zhp, NULL, nvroot, 0, "", name_flags); 650 print_vdev_tree(zhp, NULL, nvroot, 0, VDEV_ALLOC_BIAS_DEDUP, 655 print_vdev_tree(zhp, NULL, nvroot, 0, VDEV_ALLOC_BIAS_SPECIAL, 660 print_vdev_tree(zhp, NULL, nvroot, 0, VDEV_ALLOC_BIAS_LOG, 665 ret = (zpool_add(zhp, nvroot) != 0); 668 nvlist_free(nvroot); 952 nvlist_t *nvroot local 1544 nvlist_t *config, *nvroot; local 1971 nvlist_t *nvroot, *nvinfo; local 3143 nvlist_t *config, *nvroot; local 3726 nvlist_t *nvroot; local 3873 nvlist_t *nvroot; local 4523 nvlist_t *config, *nvroot; local 4625 zpool_collect_leaves(zpool_handle_t *zhp, nvlist_t *nvroot, nvlist_t *res) argument 4719 nvlist_t *nvroot = fnvlist_lookup_nvlist(config, local 4931 nvlist_t *config, *nvroot; local 5191 nvlist_t *config, *nvroot; local [all...] |
/freebsd-12-stable/cddl/contrib/opensolaris/cmd/ztest/ |
H A D | ztest.c | 2558 nvlist_t *nvroot; local 2566 nvroot = make_vdev_root("/dev/bogus", NULL, NULL, 0, 0, NULL, 0, 0, 1); 2568 spa_create("ztest_bad_file", nvroot, NULL, NULL)); 2569 nvlist_free(nvroot); 2574 nvroot = make_vdev_root("/dev/bogus", NULL, NULL, 0, 0, NULL, 0, 2, 1); 2576 spa_create("ztest_bad_mirror", nvroot, NULL, NULL)); 2577 nvlist_free(nvroot); 2581 * what's in the nvroot; we should fail with EEXIST. 2584 nvroot = make_vdev_root("/dev/bogus", NULL, NULL, 0, 0, NULL, 0, 0, 1); 2585 VERIFY3U(EEXIST, ==, spa_create(zo->zo_pool, nvroot, NUL 2651 nvlist_t *nvroot, *props; local 2822 nvlist_t *nvroot; local 2907 nvlist_t *nvroot; local 3040 nvlist_t *nvroot = make_vdev_root(NULL, aux, NULL, local 6693 nvlist_t *nvroot, *props; local [all...] |
/freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/ |
H A D | spa.h | 683 extern int spa_vdev_add(spa_t *spa, nvlist_t *nvroot); 684 extern int spa_vdev_attach(spa_t *spa, uint64_t guid, nvlist_t *nvroot,
|
/freebsd-12-stable/sys/cddl/contrib/opensolaris/common/zfs/ |
H A D | zfs_ioctl_compat.c | 956 nvlist_t *nvroot = NULL; local 968 &nvroot) == 0) 969 zfs_ioctl_compat_fix_stats_nvlist(nvroot);
|