Lines Matching refs:nvroot

490 	nvlist_t *nvroot;  in zpool_do_add()  local
541 nvroot = make_root_vdev(zhp, force, !force, B_FALSE, dryrun, in zpool_do_add()
543 if (nvroot == NULL) { in zpool_do_add()
559 print_vdev_tree(zhp, NULL, nvroot, 0, B_FALSE); in zpool_do_add()
564 print_vdev_tree(zhp, NULL, nvroot, 0, B_TRUE); in zpool_do_add()
565 } else if (num_logs(nvroot) > 0) { in zpool_do_add()
566 print_vdev_tree(zhp, "logs", nvroot, 0, B_TRUE); in zpool_do_add()
571 ret = (zpool_add(zhp, nvroot) != 0); in zpool_do_add()
574 nvlist_free(nvroot); in zpool_do_add()
647 nvlist_t *nvroot = NULL; in zpool_do_create() local
775 nvroot = make_root_vdev(NULL, force, !force, B_FALSE, dryrun, in zpool_do_create()
777 if (nvroot == NULL) in zpool_do_create()
781 if (!zfs_allocatable_devs(nvroot)) { in zpool_do_create()
872 print_vdev_tree(NULL, poolname, nvroot, 0, B_FALSE); in zpool_do_create()
873 if (num_logs(nvroot) > 0) in zpool_do_create()
874 print_vdev_tree(NULL, "logs", nvroot, 0, B_TRUE); in zpool_do_create()
906 nvroot, props, fsprops) == 0) { in zpool_do_create()
921 nvlist_free(nvroot); in zpool_do_create()
1151 nvlist_t *config, *nvroot; in find_spare() local
1155 &nvroot) == 0); in find_spare()
1157 if (find_vdev(nvroot, cbp->cb_guid)) { in find_spare()
1460 nvlist_t *nvroot; in show_import() local
1474 &nvroot) == 0); in show_import()
1476 verify(nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_VDEV_STATS, in show_import()
1659 namewidth = max_width(NULL, nvroot, 0, 0); in show_import()
1663 print_import_config(name, nvroot, namewidth, 0); in show_import()
1664 if (num_logs(nvroot) > 0) in show_import()
1665 print_logs(NULL, nvroot, namewidth, B_FALSE); in show_import()
2383 nvlist_t *config, *nvroot; in get_namewidth() local
2387 &nvroot) == 0); in get_namewidth()
2391 cb->cb_namewidth = max_width(zhp, nvroot, 0, in get_namewidth()
2907 nvlist_t *nvroot; in list_callback() local
2916 &nvroot) == 0); in list_callback()
2917 print_list_stats(zhp, NULL, nvroot, cbp, 0); in list_callback()
3060 nvlist_t *nvroot; in zpool_do_attach_or_replace() local
3127 nvroot = make_root_vdev(zhp, force, B_FALSE, replacing, B_FALSE, in zpool_do_attach_or_replace()
3129 if (nvroot == NULL) { in zpool_do_attach_or_replace()
3134 ret = zpool_vdev_attach(zhp, old_disk, new_disk, nvroot, replacing); in zpool_do_attach_or_replace()
3136 nvlist_free(nvroot); in zpool_do_attach_or_replace()
3994 nvlist_t *config, *nvroot; in status_callback() local
4029 &nvroot) == 0); in status_callback()
4030 verify(nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_VDEV_STATS, in status_callback()
4238 (void) nvlist_lookup_uint64_array(nvroot, in status_callback()
4242 namewidth = max_width(zhp, nvroot, 0, 0); in status_callback()
4249 print_status_config(zhp, zpool_get_name(zhp), nvroot, in status_callback()
4252 if (num_logs(nvroot) > 0) in status_callback()
4253 print_logs(zhp, nvroot, namewidth, B_TRUE); in status_callback()
4254 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_L2CACHE, in status_callback()
4258 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, in status_callback()