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

/freebsd-11-stable/cddl/contrib/opensolaris/lib/libzfs/common/
H A Dlibzfs_status.c198 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_broke
[all...]
H A Dlibzfs_import.c442 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) !
1648 nvlist_t *nvroot; local
1756 nvlist_t *nvroot; local
[all...]
H A Dlibzfs_pool.c252 nvlist_t *nvroot; local
355 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0);
356 verify(nvlist_lookup_uint64_array(nvroot,
1125 zpool_create(libzfs_handle_t *hdl, const char *pool, nvlist_t *nvroot, argument
1140 if (zcmd_write_conf_nvlist(hdl, &zc, nvroot) != 0)
1343 zpool_add(zpool_handle_t *zhp, nvlist_t *nvroot) argument
1357 nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES,
1366 nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_L2CACHE,
1373 if (zcmd_write_conf_nvlist(hdl, &zc, nvroot) != 0)
1961 nvlist_t *nvroot; local
2325 nvlist_t *search, *nvroot, *ret; local
2364 nvlist_t *nvroot, *search, *ret; local
2798 zpool_vdev_attach(zpool_handle_t *zhp, const char *old_disk, const char *new_disk, nvlist_t *nvroot, int replacing) argument
4210 nvlist_t *nvroot; local
4418 nvlist_t *config, *nvroot; local
[all...]
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libzpool/common/
H A Dutil.c117 nvlist_t *config, *nvroot; local
123 &nvroot) == 0);
127 show_vdev_stats(name, ZPOOL_CONFIG_CHILDREN, nvroot, 0);
128 show_vdev_stats(NULL, ZPOOL_CONFIG_L2CACHE, nvroot, 0);
129 show_vdev_stats(NULL, ZPOOL_CONFIG_SPARES, nvroot, 0);
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dspa_config.c148 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
491 nvroot = vdev_config_generate(spa, vd, getstats, config_gen_flags);
492 fnvlist_add_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, nvroot);
493 nvlist_free(nvroot);
[all...]
H A Dspa.c4282 nvlist_t *nvroot; local
4294 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0);
4298 VERIFY(nvlist_add_nvlist_array(nvroot,
4300 VERIFY(nvlist_lookup_nvlist_array(nvroot,
4331 nvlist_t *nvroot; local
4343 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0);
4347 VERIFY(nvlist_add_nvlist_array(nvroot,
4349 VERIFY(nvlist_lookup_nvlist_array(nvroot,
4541 spa_validate_aux_devs(spa_t *spa, nvlist_t *nvroot, uint64_t crtxg, int mode, argument
4555 if (nvlist_lookup_nvlist_array(nvroot, confi
4622 spa_validate_aux(spa_t *spa, nvlist_t *nvroot, uint64_t crtxg, int mode) argument
4711 spa_create(const char *pool, nvlist_t *nvroot, nvlist_t *props, nvlist_t *zplprops) argument
4993 nvlist_t *nvtop, *nvroot; local
5196 nvlist_t *best_cfg, *nvtop, *nvroot; local
5405 nvlist_t *nvroot; local
5858 spa_vdev_add(spa_t *spa, nvlist_t *nvroot) argument
6003 spa_vdev_attach(spa_t *spa, uint64_t guid, nvlist_t *nvroot, int replacing) argument
7474 nvlist_t *nvroot; local
[all...]
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/zpool/
H A Dzpool_main.c531 nvlist_t *nvroot; local
590 nvroot = make_root_vdev(zhp, force, !force, B_FALSE, dryrun,
592 if (nvroot == NULL) {
608 print_vdev_tree(zhp, NULL, nvroot, 0, B_FALSE);
613 print_vdev_tree(zhp, NULL, nvroot, 0, B_TRUE);
614 } else if (num_logs(nvroot) > 0) {
615 print_vdev_tree(zhp, "logs", nvroot, 0, B_TRUE);
620 ret = (zpool_add(zhp, nvroot) != 0);
623 nvlist_free(nvroot);
907 nvlist_t *nvroot local
1494 nvlist_t *config, *nvroot; local
1866 nvlist_t *nvroot; local
2892 nvlist_t *config, *nvroot; local
3422 nvlist_t *nvroot; local
3548 nvlist_t *nvroot; local
4184 nvlist_t *config, *nvroot; local
4286 zpool_collect_leaves(zpool_handle_t *zhp, nvlist_t *nvroot, nvlist_t *res) argument
4380 nvlist_t *nvroot = fnvlist_lookup_nvlist(config, local
4601 nvlist_t *config, *nvroot; local
4861 nvlist_t *config, *nvroot; local
[all...]
H A Dzpool_vdev.c582 get_replication(nvlist_t *nvroot, boolean_t fatal) argument
597 verify(nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN,
864 nvlist_t *nvroot; local
867 &nvroot) == 0);
868 if ((current = get_replication(nvroot, B_FALSE)) == NULL)
1083 nvlist_t *nvroot; local
1106 &nvroot) == 0);
1107 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES,
1258 nvlist_t *nvroot, *nv, **top, **spares, **l2cache; local
1430 * Finally, create nvroot an
[all...]
/freebsd-11-stable/cddl/usr.sbin/zfsd/
H A Dcase_file.cc490 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-11-stable/cddl/contrib/opensolaris/cmd/ztest/
H A Dztest.c2384 nvlist_t *nvroot; local
2389 nvroot = make_vdev_root("/dev/bogus", NULL, NULL, 0, 0, 0, 0, 0, 1);
2391 spa_create("ztest_bad_file", nvroot, NULL, NULL));
2392 nvlist_free(nvroot);
2397 nvroot = make_vdev_root("/dev/bogus", NULL, NULL, 0, 0, 0, 0, 2, 1);
2399 spa_create("ztest_bad_mirror", nvroot, NULL, NULL));
2400 nvlist_free(nvroot);
2404 * what's in the nvroot; we should fail with EEXIST.
2407 nvroot = make_vdev_root("/dev/bogus", NULL, NULL, 0, 0, 0, 0, 0, 1);
2408 VERIFY3U(EEXIST, ==, spa_create(zo->zo_pool, nvroot, NUL
2424 nvlist_t *nvroot, *props; local
2592 nvlist_t *nvroot; local
2722 nvlist_t *nvroot = make_vdev_root(NULL, aux, NULL, local
6298 nvlist_t *nvroot, *props; local
[all...]
/freebsd-11-stable/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-11-stable/sys/cddl/contrib/opensolaris/common/zfs/
H A Dzfs_ioctl_compat.c956 nvlist_t *nvroot = NULL; local
968 &nvroot) == 0)
969 zfs_ioctl_compat_fix_stats_nvlist(nvroot);

Completed in 366 milliseconds