Home
last modified time | relevance | path

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

/freebsd-12-stable/cddl/contrib/opensolaris/lib/libzfs/common/
Dlibzfs_status.c214 nvlist_t *nvroot; in check_status() local
228 &nvroot) == 0); in check_status()
229 verify(nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_VDEV_STATS, in check_status()
237 (void) nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_SCAN_STATS, in check_status()
327 find_vdev_problem(nvroot, vdev_faulted, B_TRUE)) in check_status()
331 find_vdev_problem(nvroot, vdev_missing, B_TRUE)) in check_status()
335 find_vdev_problem(nvroot, vdev_broken, B_TRUE)) in check_status()
357 if (find_vdev_problem(nvroot, vdev_faulted, B_TRUE)) in check_status()
359 if (find_vdev_problem(nvroot, vdev_missing, B_TRUE)) in check_status()
361 if (find_vdev_problem(nvroot, vdev_broken, B_TRUE)) in check_status()
[all …]
Dlibzfs_import.c442 nvlist_t *ret = NULL, *config = NULL, *tmp = NULL, *nvtop, *nvroot; in get_configs() local
709 if (nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) != 0) in get_configs()
711 if (nvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE, in get_configs()
713 nvlist_add_uint64(nvroot, ZPOOL_CONFIG_ID, 0ULL) != 0 || in get_configs()
714 nvlist_add_uint64(nvroot, ZPOOL_CONFIG_GUID, guid) != 0 || in get_configs()
715 nvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, in get_configs()
717 nvlist_free(nvroot); in get_configs()
731 if (fix_paths(nvroot, pl->names) != 0) { in get_configs()
732 nvlist_free(nvroot); in get_configs()
740 nvroot) != 0) { in get_configs()
[all …]
Dlibzfs_pool.c253 nvlist_t *nvroot; in zpool_get_prop() local
356 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0); in zpool_get_prop()
357 verify(nvlist_lookup_uint64_array(nvroot, in zpool_get_prop()
1133 zpool_has_special_vdev(nvlist_t *nvroot) in zpool_has_special_vdev() argument
1138 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, &child, in zpool_has_special_vdev()
1159 zpool_create(libzfs_handle_t *hdl, const char *pool, nvlist_t *nvroot, in zpool_create() argument
1174 if (zcmd_write_conf_nvlist(hdl, &zc, nvroot) != 0) in zpool_create()
1201 !zpool_has_special_vdev(nvroot)) { in zpool_create()
1388 zpool_add(zpool_handle_t *zhp, nvlist_t *nvroot) in zpool_add() argument
1402 nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, in zpool_add()
[all …]
/freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
Dspa_config.c148 nvlist_t *nvroot = NULL; in spa_config_clean() local
157 if (nvlist_lookup_nvlist(nvl, ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0) in spa_config_clean()
158 spa_config_clean(nvroot); in spa_config_clean()
253 nvlist_t *nvroot = NULL; in spa_write_cachefile() local
289 if (nvlist_lookup_nvlist(nvl, pool_name, &nvroot) == 0) in spa_write_cachefile()
290 spa_config_clean(nvroot); in spa_write_cachefile()
388 nvlist_t *config, *nvroot; in spa_config_generate() local
490 nvroot = vdev_config_generate(spa, vd, getstats, config_gen_flags); in spa_config_generate()
491 fnvlist_add_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, nvroot); in spa_config_generate()
492 nvlist_free(nvroot); in spa_config_generate()
Dspa.c4703 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, config, &dev, &ndev) != 0)
[all …]
/freebsd-12-stable/cddl/contrib/opensolaris/lib/libzpool/common/
Dutil.c126 nvlist_t *config, *nvroot; in show_pool_stats() local
132 &nvroot) == 0); in show_pool_stats()
136 show_vdev_stats(name, ZPOOL_CONFIG_CHILDREN, nvroot, 0); in show_pool_stats()
137 show_vdev_stats(NULL, ZPOOL_CONFIG_L2CACHE, nvroot, 0); in show_pool_stats()
138 show_vdev_stats(NULL, ZPOOL_CONFIG_SPARES, nvroot, 0); in show_pool_stats()
/freebsd-12-stable/cddl/usr.sbin/zfsd/
Dcase_file.cc498 nvlist_t *config, *nvroot, *parent_config; in ActivateSpare() local
519 error = nvlist_lookup_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, &nvroot); in ActivateSpare()
526 parent_config = find_parent(config, nvroot, m_vdevGUID); in ActivateSpare()
542 nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, &spares, in ActivateSpare()
1062 nvlist_t *nvroot, *newvd; in Replace() local
1102 nvroot = NULL; in Replace()
1105 if (nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) != 0 in Replace()
1109 if (nvroot != NULL) in Replace()
1110 nvlist_free(nvroot); in Replace()
1115 || nvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE, VDEV_TYPE_ROOT) != 0 in Replace()
[all …]
/freebsd-12-stable/cddl/contrib/opensolaris/cmd/zpool/
Dzpool_main.c558 nvlist_t *nvroot; in zpool_do_add() local
626 nvroot = make_root_vdev(zhp, force, !force, B_FALSE, dryrun, in zpool_do_add()
628 if (nvroot == NULL) { in zpool_do_add()
645 print_vdev_tree(zhp, NULL, nvroot, 0, "", name_flags); in zpool_do_add()
650 print_vdev_tree(zhp, NULL, nvroot, 0, VDEV_ALLOC_BIAS_DEDUP, in zpool_do_add()
655 print_vdev_tree(zhp, NULL, nvroot, 0, VDEV_ALLOC_BIAS_SPECIAL, in zpool_do_add()
660 print_vdev_tree(zhp, NULL, nvroot, 0, VDEV_ALLOC_BIAS_LOG, in zpool_do_add()
665 ret = (zpool_add(zhp, nvroot) != 0); in zpool_do_add()
668 nvlist_free(nvroot); in zpool_do_add()
952 nvlist_t *nvroot = NULL; in zpool_do_create() local
[all …]
Dzpool_vdev.c602 get_replication(nvlist_t *nvroot, boolean_t fatal) in get_replication() argument
618 verify(nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, in get_replication()
914 nvlist_t *nvroot; in check_replication() local
917 &nvroot) == 0); in check_replication()
918 if ((current = get_replication(nvroot, B_FALSE)) == NULL) in check_replication()
1147 nvlist_t *nvroot; in is_spare() local
1170 &nvroot) == 0); in is_spare()
1171 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, in is_spare()
1329 nvlist_t *nvroot, *nv, **top, **spares, **l2cache; in construct_spec() local
1549 verify(nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) == 0); in construct_spec()
[all …]
/freebsd-12-stable/cddl/contrib/opensolaris/cmd/ztest/
Dztest.c2558 nvlist_t *nvroot; in ztest_spa_create_destroy() local
2566 nvroot = make_vdev_root("/dev/bogus", NULL, NULL, 0, 0, NULL, 0, 0, 1); in ztest_spa_create_destroy()
2568 spa_create("ztest_bad_file", nvroot, NULL, NULL)); in ztest_spa_create_destroy()
2569 nvlist_free(nvroot); in ztest_spa_create_destroy()
2574 nvroot = make_vdev_root("/dev/bogus", NULL, NULL, 0, 0, NULL, 0, 2, 1); in ztest_spa_create_destroy()
2576 spa_create("ztest_bad_mirror", nvroot, NULL, NULL)); in ztest_spa_create_destroy()
2577 nvlist_free(nvroot); in ztest_spa_create_destroy()
2584 nvroot = make_vdev_root("/dev/bogus", NULL, NULL, 0, 0, NULL, 0, 0, 1); in ztest_spa_create_destroy()
2585 VERIFY3U(EEXIST, ==, spa_create(zo->zo_pool, nvroot, NULL, NULL)); in ztest_spa_create_destroy()
2586 nvlist_free(nvroot); in ztest_spa_create_destroy()
[all …]
/freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
Dspa.h683 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/
Dzfs_ioctl_compat.c956 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()