Home
last modified time | relevance | path

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

/freebsd-12.1/cddl/contrib/opensolaris/lib/libzfs/common/
H A Dlibzfs_status.c198 nvlist_t *nvroot; in check_status() local
211 &nvroot) == 0); 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()
330 if (find_vdev_problem(nvroot, vdev_offlined, B_TRUE)) in check_status()
336 if (find_vdev_problem(nvroot, vdev_removed, B_TRUE)) in check_status()
[all …]
H A Dlibzfs_import.c717 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()
741 nvlist_free(nvroot); in get_configs()
744 nvlist_free(nvroot); in get_configs()
791 &nvroot) == 0); in get_configs()
1648 nvlist_t *nvroot; in find_aux() local
1651 &nvroot) == 0); in find_aux()
1756 nvlist_t *nvroot; in zpool_in_use() local
[all …]
H A Dlibzfs_pool.c252 nvlist_t *nvroot; in zpool_get_prop() local
356 verify(nvlist_lookup_uint64_array(nvroot, in zpool_get_prop()
1961 nvlist_t *nvroot; in zpool_scan() local
2325 nvlist_t *search, *nvroot, *ret; local
2331 &nvroot) == 0);
2364 nvlist_t *nvroot, *search, *ret; local
2382 &nvroot) == 0);
4201 nvlist_t *nvroot; local
4207 start_block = find_start_block(nvroot);
4409 nvlist_t *config, *nvroot; local
[all …]
/freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A 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
491 nvroot = vdev_config_generate(spa, vd, getstats, config_gen_flags); in spa_config_generate()
492 fnvlist_add_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, nvroot); in spa_config_generate()
493 nvlist_free(nvroot); in spa_config_generate()
H A Dspa.c4290 nvlist_t *nvroot; local
4306 VERIFY(nvlist_add_nvlist_array(nvroot,
4339 nvlist_t *nvroot; local
5001 nvlist_t *nvtop, *nvroot; local
5032 nvlist_free(nvroot);
5204 nvlist_t *best_cfg, *nvtop, *nvroot; local
5306 nvlist_free(nvroot);
5413 nvlist_t *nvroot; local
5499 &nvroot) == 0);
7482 nvlist_t *nvroot; local
[all …]
/freebsd-12.1/cddl/contrib/opensolaris/lib/libzpool/common/
H A Dutil.c117 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-12.1/cddl/usr.sbin/zfsd/
H A Dcase_file.cc490 nvlist_t *config, *nvroot, *parent_config; in ActivateSpare() local
518 parent_config = find_parent(config, nvroot, m_vdevGUID); in ActivateSpare()
1054 nvlist_t *nvroot, *newvd; in Replace() local
1094 nvroot = NULL; in Replace()
1097 if (nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) != 0 in Replace()
1101 if (nvroot != NULL) in Replace()
1102 nvlist_free(nvroot); in Replace()
1108 || nvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, in Replace()
1113 nvlist_free(nvroot); in Replace()
1120 retval = (zpool_vdev_attach(zhp, oldstr.c_str(), path, nvroot, in Replace()
[all …]
/freebsd-12.1/cddl/contrib/opensolaris/cmd/zpool/
H A Dzpool_main.c529 nvlist_t *nvroot; in zpool_do_add() local
590 if (nvroot == NULL) { in zpool_do_add()
621 nvlist_free(nvroot); in zpool_do_add()
1117 if (nvroot == NULL) in zpool_do_create()
1262 nvlist_free(nvroot); in zpool_do_create()
1496 &nvroot) == 0); in find_spare()
1864 nvlist_t *nvroot; in show_import() local
1878 &nvroot) == 0); in show_import()
3420 nvlist_t *nvroot; in list_callback() local
3429 &nvroot) == 0); in list_callback()
[all …]
H A Dzpool_vdev.c582 get_replication(nvlist_t *nvroot, boolean_t fatal) in get_replication() argument
864 nvlist_t *nvroot; in check_replication() local
867 &nvroot) == 0); in check_replication()
868 if ((current = get_replication(nvroot, B_FALSE)) == NULL) in check_replication()
1083 nvlist_t *nvroot; in is_spare() local
1106 &nvroot) == 0); in is_spare()
1107 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, in is_spare()
1258 nvlist_t *nvroot, *nv, **top, **spares, **l2cache; in construct_spec() local
1432 verify(nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) == 0); in construct_spec()
1433 verify(nvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE, in construct_spec()
[all …]
/freebsd-12.1/cddl/contrib/opensolaris/cmd/ztest/
H A Dztest.c2474 nvlist_t *nvroot; in ztest_spa_create_destroy() local
2482 nvlist_free(nvroot); in ztest_spa_create_destroy()
2490 nvlist_free(nvroot); in ztest_spa_create_destroy()
2499 nvlist_free(nvroot); in ztest_spa_create_destroy()
2514 nvlist_t *nvroot, *props; in ztest_spa_upgrade() local
2557 fnvlist_free(nvroot); in ztest_spa_upgrade()
2682 nvlist_t *nvroot; in ztest_vdev_add_remove() local
2736 nvlist_free(nvroot); in ztest_vdev_add_remove()
2822 nvlist_free(nvroot); in ztest_vdev_aux_add_remove()
6370 nvlist_t *nvroot, *props; in ztest_init() local
[all …]
/freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
H A Dspa.h682 extern int spa_vdev_add(spa_t *spa, nvlist_t *nvroot);
683 extern int spa_vdev_attach(spa_t *spa, uint64_t guid, nvlist_t *nvroot,
/freebsd-12.1/sys/cddl/contrib/opensolaris/common/zfs/
H A 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()