Searched defs:nvroot (Results 1 - 13 of 13) 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/libzpool/common/
H A Dutil.c129 nvlist_t *config, *nvroot; local
135 &nvroot) == 0);
139 show_vdev_stats(name, ZPOOL_CONFIG_CHILDREN, nvroot, 0);
140 show_vdev_stats(NULL, ZPOOL_CONFIG_L2CACHE, nvroot, 0);
141 show_vdev_stats(NULL, ZPOOL_CONFIG_SPARES, nvroot, 0);
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_status.c203 nvlist_t *nvroot; local
218 &nvroot) == 0);
219 verify(nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_VDEV_STATS,
227 (void) nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_SCAN_STATS,
317 find_vdev_problem(nvroot, vdev_faulted))
321 find_vdev_problem(nvroot, vdev_missing))
325 find_vdev_problem(nvroot, vdev_broken))
347 if (find_vdev_problem(nvroot, vdev_faulted))
349 if (find_vdev_problem(nvroot, vdev_missing))
351 if (find_vdev_problem(nvroot, vdev_broke
[all...]
H A Dlibzfs_import.c414 nvlist_t *ret = NULL, *config = NULL, *tmp = NULL, *nvtop, *nvroot; local
681 if (nvlist_alloc(&nvroot, NV_UNIQUE_NAME, 0) != 0)
683 if (nvlist_add_string(nvroot, ZPOOL_CONFIG_TYPE,
685 nvlist_add_uint64(nvroot, ZPOOL_CONFIG_ID, 0ULL) != 0 ||
686 nvlist_add_uint64(nvroot, ZPOOL_CONFIG_GUID, guid) != 0 ||
687 nvlist_add_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN,
689 nvlist_free(nvroot);
703 if (fix_paths(nvroot, pl->names) != 0) {
704 nvlist_free(nvroot);
712 nvroot) !
1558 nvlist_t *nvroot; local
1666 nvlist_t *nvroot; local
[all...]
H A Dlibzfs_pool.c253 nvlist_t *nvroot; local
356 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0);
357 verify(nvlist_lookup_uint64_array(nvroot,
1148 zpool_has_special_vdev(nvlist_t *nvroot) argument
1153 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, &child,
1174 zpool_create(libzfs_handle_t *hdl, const char *pool, nvlist_t *nvroot, argument
1192 if (zcmd_write_conf_nvlist(hdl, &zc, nvroot) != 0)
1219 !zpool_has_special_vdev(nvroot)) {
1424 zpool_add(zpool_handle_t *zhp, nvlist_t *nvroot) argument
1438 nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARE
2132 nvlist_t *nvroot; local
2571 nvlist_t *search, *nvroot, *ret; local
2610 nvlist_t *nvroot, *search, *ret; local
3043 zpool_vdev_attach(zpool_handle_t *zhp, const char *old_disk, const char *new_disk, nvlist_t *nvroot, int replacing) argument
4541 nvlist_t *nvroot; local
4748 nvlist_t *config, *nvroot; local
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dspa_config.c365 nvlist_t *config, *nvroot; local
468 nvroot = vdev_config_generate(spa, vd, getstats, config_gen_flags);
469 fnvlist_add_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, nvroot);
470 nvlist_free(nvroot);
H A Dspa.c4644 nvlist_t *nvroot; local
4656 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0);
4660 VERIFY(nvlist_add_nvlist_array(nvroot,
4662 VERIFY(nvlist_lookup_nvlist_array(nvroot,
4693 nvlist_t *nvroot; local
4705 ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0);
4709 VERIFY(nvlist_add_nvlist_array(nvroot,
4711 VERIFY(nvlist_lookup_nvlist_array(nvroot,
4860 spa_validate_aux_devs(spa_t *spa, nvlist_t *nvroot, uint64_t crtxg, int mode, argument
4874 if (nvlist_lookup_nvlist_array(nvroot, confi
4929 spa_validate_aux(spa_t *spa, nvlist_t *nvroot, uint64_t crtxg, int mode) argument
5034 spa_create(const char *pool, nvlist_t *nvroot, nvlist_t *props, nvlist_t *zplprops, dsl_crypto_params_t *dcp) argument
5340 nvlist_t *nvtop, *nvroot; local
5548 nvlist_t *nvroot; local
5998 spa_vdev_add(spa_t *spa, nvlist_t *nvroot) argument
6133 spa_vdev_attach(spa_t *spa, uint64_t guid, nvlist_t *nvroot, int replacing) argument
7774 nvlist_t *nvroot; local
[all...]
/illumos-gate/usr/src/cmd/fm/modules/common/zfs-retire/
H A Dzfs_retire.c148 nvlist_t *config, *nvroot; local
160 &nvroot) != 0) {
166 if ((*vdevp = find_vdev(zhdl, nvroot, NULL,
181 nvlist_t *nvroot; local
185 &nvroot) != 0) {
190 if ((cbp->cb_vdev = find_vdev(zpool_get_handle(zhp), nvroot,
224 nvlist_t *config, *nvroot, *replacement; local
233 &nvroot) != 0)
239 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/zpool/
H A Dzpool_vdev.c590 get_replication(nvlist_t *nvroot, boolean_t fatal) argument
606 verify(nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN,
885 nvlist_t *nvroot; local
888 &nvroot) == 0);
889 if ((current = get_replication(nvroot, B_FALSE)) == NULL)
1116 nvlist_t *nvroot; local
1139 &nvroot) == 0);
1140 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES,
1296 nvlist_t *nvroot, *nv, **top, **spares, **l2cache; local
1515 * Finally, create nvroot an
1598 num_normal_vdevs(nvlist_t *nvroot) argument
[all...]
H A Dzpool_main.c322 zpool_collect_leaves(zpool_handle_t *zhp, nvlist_t *nvroot, nvlist_t *res) argument
328 (void) nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN,
332 char *path = zpool_vdev_name(g_zfs, zhp, nvroot, 0);
598 nvlist_t *nvroot; local
695 nvroot = make_root_vdev(zhp, props, force, !force, B_FALSE, dryrun,
697 if (nvroot == NULL) {
714 print_vdev_tree(zhp, NULL, nvroot, 0, "", name_flags);
719 print_vdev_tree(zhp, NULL, nvroot, 0, VDEV_ALLOC_BIAS_DEDUP,
724 print_vdev_tree(zhp, NULL, nvroot, 0, VDEV_ALLOC_BIAS_SPECIAL,
729 print_vdev_tree(zhp, NULL, nvroot,
1018 nvlist_t *nvroot = NULL; local
1602 nvlist_t *config, *nvroot; local
2098 nvlist_t *nvroot, *nvinfo; local
3352 nvlist_t *config, *nvroot; local
3935 nvlist_t *nvroot; local
4082 nvlist_t *nvroot; local
4781 nvlist_t *config, *nvroot; local
5021 nvlist_t *nvroot = fnvlist_lookup_nvlist(config, local
5115 nvlist_t *nvroot = fnvlist_lookup_nvlist(config, local
5327 nvlist_t *config, *nvroot; local
5587 nvlist_t *config, *nvroot; local
[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/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
6866 nvlist_t *nvroot, *props; local
[all...]

Completed in 206 milliseconds