Searched defs:nvroot (Results 1 - 15 of 15) sorted by relevance

/illumos-gate/usr/src/cmd/fm/schemes/zfs/
H A Dscheme.c134 nvlist_t *config, *nvroot; local
138 (void) nvlist_lookup_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, &nvroot);
140 return (find_vdev_iter(nvroot, guid));
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_status.c204 nvlist_t *nvroot; local
219 &nvroot) == 0);
220 verify(nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_VDEV_STATS,
228 (void) nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_SCAN_STATS,
318 find_vdev_problem(nvroot, vdev_faulted))
322 find_vdev_problem(nvroot, vdev_missing))
326 find_vdev_problem(nvroot, vdev_broken))
348 if (find_vdev_problem(nvroot, vdev_faulted))
350 if (find_vdev_problem(nvroot, vdev_missing))
352 if (find_vdev_problem(nvroot, vdev_broke
[all...]
H A Dlibzfs_import.c269 nvlist_t *nvroot; local
272 &nvroot) == 0);
274 if (nvlist_lookup_nvlist_array(nvroot, cbp->cb_type,
377 nvlist_t *nvroot; local
380 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0);
381 ret = find_guid(nvroot, vdev_guid);
H A Dlibzfs_pool.c254 nvlist_t *nvroot; local
357 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0);
358 verify(nvlist_lookup_uint64_array(nvroot,
1150 zpool_has_special_vdev(nvlist_t *nvroot) argument
1155 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, &child,
1176 zpool_create(libzfs_handle_t *hdl, const char *pool, nvlist_t *nvroot, argument
1194 if (zcmd_write_conf_nvlist(hdl, &zc, nvroot) != 0)
1221 !zpool_has_special_vdev(nvroot)) {
1426 zpool_add(zpool_handle_t *zhp, nvlist_t *nvroot) argument
1440 nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARE
2127 nvlist_t *nvroot; local
2566 nvlist_t *search, *nvroot, *ret; local
2605 nvlist_t *nvroot, *search, *ret; local
3038 zpool_vdev_attach(zpool_handle_t *zhp, const char *old_disk, const char *new_disk, nvlist_t *nvroot, int replacing) argument
4510 nvlist_t *nvroot; local
4718 nvlist_t *config, *nvroot; local
[all...]
/illumos-gate/usr/src/cmd/zpool/
H A Dzpool_iter.c315 nvlist_t *config, *nvroot; local
319 &nvroot) == 0);
321 return (for_each_vdev_cb(zhp, nvroot, func, data));
H A Dzpool_vdev.c591 get_replication(nvlist_t *nvroot, boolean_t fatal) argument
607 verify(nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN,
886 nvlist_t *nvroot; local
889 &nvroot) == 0);
890 if ((current = get_replication(nvroot, B_FALSE)) == NULL)
1117 nvlist_t *nvroot; local
1140 &nvroot) == 0);
1141 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES,
1297 nvlist_t *nvroot, *nv, **top, **spares, **l2cache; local
1516 * Finally, create nvroot an
1599 num_normal_vdevs(nvlist_t *nvroot) argument
[all...]
H A Dzpool_main.c408 zpool_collect_leaves(zpool_handle_t *zhp, nvlist_t *nvroot, nvlist_t *res) argument
414 (void) nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN,
418 char *path = zpool_vdev_name(g_zfs, zhp, nvroot, 0);
684 nvlist_t *nvroot; local
781 nvroot = make_root_vdev(zhp, props, force, !force, B_FALSE, dryrun,
783 if (nvroot == NULL) {
800 print_vdev_tree(zhp, NULL, nvroot, 0, "", name_flags);
805 print_vdev_tree(zhp, NULL, nvroot, 0, VDEV_ALLOC_BIAS_DEDUP,
810 print_vdev_tree(zhp, NULL, nvroot, 0, VDEV_ALLOC_BIAS_SPECIAL,
815 print_vdev_tree(zhp, NULL, nvroot,
1105 nvlist_t *nvroot = NULL; local
1693 nvlist_t *config, *nvroot; local
2215 nvlist_t *nvroot, *nvinfo; local
4280 nvlist_t *config, *nvroot; local
4391 nvlist_t *config, *nvroot, *nvx; local
5341 nvlist_t *nvroot; local
5510 nvlist_t *nvroot; local
6209 nvlist_t *config, *nvroot; local
6449 nvlist_t *nvroot = fnvlist_lookup_nvlist(config, local
6543 nvlist_t *nvroot = fnvlist_lookup_nvlist(config, local
6755 nvlist_t *config, *nvroot; local
7015 nvlist_t *config, *nvroot; local
[all...]
/illumos-gate/usr/src/lib/libzpool/common/
H A Dutil.c135 nvlist_t *config, *nvroot; local
141 &nvroot) == 0);
145 show_vdev_stats(name, ZPOOL_CONFIG_CHILDREN, nvroot, 0);
146 show_vdev_stats(NULL, ZPOOL_CONFIG_L2CACHE, nvroot, 0);
147 show_vdev_stats(NULL, ZPOOL_CONFIG_SPARES, nvroot, 0);
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dspa_config.c366 nvlist_t *config, *nvroot; local
469 nvroot = vdev_config_generate(spa, vd, getstats, config_gen_flags);
470 fnvlist_add_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, nvroot);
471 nvlist_free(nvroot);
H A Dspa.c4671 nvlist_t *nvroot; local
4683 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0);
4687 VERIFY(nvlist_add_nvlist_array(nvroot,
4689 VERIFY(nvlist_lookup_nvlist_array(nvroot,
4720 nvlist_t *nvroot; local
4732 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0);
4736 VERIFY(nvlist_add_nvlist_array(nvroot,
4738 VERIFY(nvlist_lookup_nvlist_array(nvroot,
4889 spa_validate_aux_devs(spa_t *spa, nvlist_t *nvroot, uint64_t crtxg, int mode, argument
4903 if (nvlist_lookup_nvlist_array(nvroot, confi
4958 spa_validate_aux(spa_t *spa, nvlist_t *nvroot, uint64_t crtxg, int mode) argument
5063 spa_create(const char *pool, nvlist_t *nvroot, nvlist_t *props, nvlist_t *zplprops, dsl_crypto_params_t *dcp) argument
5368 nvlist_t *nvtop, *nvroot; local
5613 nvlist_t *nvroot; local
6063 spa_vdev_add(spa_t *spa, nvlist_t *nvroot) argument
6198 spa_vdev_attach(spa_t *spa, uint64_t guid, nvlist_t *nvroot, int replacing) argument
7847 nvlist_t *nvroot; local
[all...]
/illumos-gate/usr/src/cmd/fm/modules/common/zfs-retire/
H A Dzfs_retire.c156 nvlist_t *config, *nvroot; local
168 &nvroot) != 0) {
174 if ((*vdevp = find_vdev(zhdl, nvroot, NULL,
189 nvlist_t *nvroot; local
193 &nvroot) != 0) {
198 if ((cbp->cb_vdev = find_vdev(zpool_get_handle(zhp), nvroot,
232 nvlist_t *config, *nvroot, *replacement; local
243 &nvroot) != 0)
249 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES,
/illumos-gate/usr/src/cmd/syseventd/modules/zfs_mod/
H A Dzfs_mod.c108 nvlist_t *nvroot; local
113 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0);
114 verify(nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_VDEV_STATS,
153 nvlist_t *nvroot, *newvd; local
244 if (nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) != 0)
248 nvlist_free(nvroot);
257 nvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE, VDEV_TYPE_ROOT) != 0 ||
258 nvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, &newvd,
261 nvlist_free(nvroot);
267 (void) zpool_vdev_attach(zhp, fullpath, path, nvroot, B_TRU
[all...]
/illumos-gate/usr/src/cmd/power/
H A Dhandlers.c1006 nvlist_t *config, *nvroot; local
1034 &nvroot) != 0) {
1039 verify(nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN,
/illumos-gate/usr/src/lib/libzutil/common/
H A Dzutil_import.c474 nvlist_t *ret = NULL, *config = NULL, *tmp = NULL, *nvtop, *nvroot; local
741 if (nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) != 0)
743 if (nvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE,
745 nvlist_add_uint64(nvroot, ZPOOL_CONFIG_ID, 0ULL) != 0 ||
746 nvlist_add_uint64(nvroot, ZPOOL_CONFIG_GUID, guid) != 0 ||
747 nvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN,
749 nvlist_free(nvroot);
763 if (fix_paths(nvroot, pl->names) != 0) {
764 nvlist_free(nvroot);
772 nvroot) !
[all...]
/illumos-gate/usr/src/cmd/ztest/
H A Dztest.c2596 nvlist_t *nvroot; local
2604 nvroot = make_vdev_root("/dev/bogus", NULL, NULL, 0, 0, NULL, 0, 0, 1);
2606 spa_create("ztest_bad_file", nvroot, NULL, NULL, NULL));
2607 nvlist_free(nvroot);
2612 nvroot = make_vdev_root("/dev/bogus", NULL, NULL, 0, 0, NULL, 0, 2, 1);
2614 spa_create("ztest_bad_mirror", nvroot, NULL, NULL, NULL));
2615 nvlist_free(nvroot);
2619 * what's in the nvroot; we should fail with EEXIST.
2622 nvroot = make_vdev_root("/dev/bogus", NULL, NULL, 0, 0, NULL, 0, 0, 1);
2624 spa_create(zo->zo_pool, nvroot, NUL
2690 nvlist_t *nvroot, *props; local
2849 nvlist_t *nvroot; local
2934 nvlist_t *nvroot; local
3067 nvlist_t *nvroot = make_vdev_root(NULL, aux, NULL, local
6864 nvlist_t *nvroot, *props; local
[all...]

Completed in 131 milliseconds