Lines Matching defs:nvroot

496 	nvlist_t *nvroot;
547 nvroot = make_root_vdev(zhp, force, !force, B_FALSE, dryrun,
549 if (nvroot == NULL) {
565 print_vdev_tree(zhp, NULL, nvroot, 0, B_FALSE);
570 print_vdev_tree(zhp, NULL, nvroot, 0, B_TRUE);
571 } else if (num_logs(nvroot) > 0) {
572 print_vdev_tree(zhp, "logs", nvroot, 0, B_TRUE);
577 ret = (zpool_add(zhp, nvroot) != 0);
580 nvlist_free(nvroot);
772 nvlist_t *nvroot = NULL;
898 nvroot = make_root_vdev(NULL, force, !force, B_FALSE, dryrun,
900 if (nvroot == NULL)
904 if (!zfs_allocatable_devs(nvroot)) {
995 print_vdev_tree(NULL, poolname, nvroot, 0, B_FALSE);
996 if (num_logs(nvroot) > 0)
997 print_vdev_tree(NULL, "logs", nvroot, 0, B_TRUE);
1029 nvroot, props, fsprops) == 0) {
1044 nvlist_free(nvroot);
1274 nvlist_t *config, *nvroot;
1278 &nvroot) == 0);
1280 if (find_vdev(nvroot, cbp->cb_guid)) {
1595 nvlist_t *nvroot;
1609 &nvroot) == 0);
1611 verify(nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_VDEV_STATS,
1794 namewidth = max_width(NULL, nvroot, 0, 0);
1798 print_import_config(name, nvroot, namewidth, 0);
1799 if (num_logs(nvroot) > 0)
1800 print_logs(NULL, nvroot, namewidth, B_FALSE);
2516 nvlist_t *config, *nvroot;
2520 &nvroot) == 0);
2524 cb->cb_namewidth = max_width(zhp, nvroot, 0,
2989 nvlist_t *nvroot;
2998 &nvroot) == 0);
2999 print_list_stats(zhp, NULL, nvroot, cbp, 0);
3141 nvlist_t *nvroot;
3208 nvroot = make_root_vdev(zhp, force, B_FALSE, replacing, B_FALSE,
3210 if (nvroot == NULL) {
3215 ret = zpool_vdev_attach(zhp, old_disk, new_disk, nvroot, replacing);
3217 nvlist_free(nvroot);
4075 nvlist_t *config, *nvroot;
4110 &nvroot) == 0);
4111 verify(nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_VDEV_STATS,
4328 (void) nvlist_lookup_uint64_array(nvroot,
4332 namewidth = max_width(zhp, nvroot, 0, 0);
4339 print_status_config(zhp, zpool_get_name(zhp), nvroot,
4342 if (num_logs(nvroot) > 0)
4343 print_logs(zhp, nvroot, namewidth, B_TRUE);
4344 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_L2CACHE,
4348 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES,