Lines Matching defs:nvroot
492 nvlist_t *nvroot;
543 nvroot = make_root_vdev(zhp, force, !force, B_FALSE, dryrun,
545 if (nvroot == NULL) {
561 print_vdev_tree(zhp, NULL, nvroot, 0, B_FALSE);
566 print_vdev_tree(zhp, NULL, nvroot, 0, B_TRUE);
567 } else if (num_logs(nvroot) > 0) {
568 print_vdev_tree(zhp, "logs", nvroot, 0, B_TRUE);
573 ret = (zpool_add(zhp, nvroot) != 0);
576 nvlist_free(nvroot);
649 nvlist_t *nvroot = NULL;
777 nvroot = make_root_vdev(NULL, force, !force, B_FALSE, dryrun,
779 if (nvroot == NULL)
783 if (!zfs_allocatable_devs(nvroot)) {
874 print_vdev_tree(NULL, poolname, nvroot, 0, B_FALSE);
875 if (num_logs(nvroot) > 0)
876 print_vdev_tree(NULL, "logs", nvroot, 0, B_TRUE);
908 nvroot, props, fsprops) == 0) {
923 nvlist_free(nvroot);
1153 nvlist_t *config, *nvroot;
1157 &nvroot) == 0);
1159 if (find_vdev(nvroot, cbp->cb_guid)) {
1462 nvlist_t *nvroot;
1476 &nvroot) == 0);
1478 verify(nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_VDEV_STATS,
1661 namewidth = max_width(NULL, nvroot, 0, 0);
1665 print_import_config(name, nvroot, namewidth, 0);
1666 if (num_logs(nvroot) > 0)
1667 print_logs(NULL, nvroot, namewidth, B_FALSE);
2385 nvlist_t *config, *nvroot;
2389 &nvroot) == 0);
2393 cb->cb_namewidth = max_width(zhp, nvroot, 0,
2909 nvlist_t *nvroot;
2918 &nvroot) == 0);
2919 print_list_stats(zhp, NULL, nvroot, cbp, 0);
3035 nvlist_t *nvroot;
3102 nvroot = make_root_vdev(zhp, force, B_FALSE, replacing, B_FALSE,
3104 if (nvroot == NULL) {
3109 ret = zpool_vdev_attach(zhp, old_disk, new_disk, nvroot, replacing);
3111 nvlist_free(nvroot);
3967 nvlist_t *config, *nvroot;
4002 &nvroot) == 0);
4003 verify(nvlist_lookup_uint64_array(nvroot, ZPOOL_CONFIG_VDEV_STATS,
4211 (void) nvlist_lookup_uint64_array(nvroot,
4215 namewidth = max_width(zhp, nvroot, 0, 0);
4222 print_status_config(zhp, zpool_get_name(zhp), nvroot,
4225 if (num_logs(nvroot) > 0)
4226 print_logs(zhp, nvroot, namewidth, B_TRUE);
4227 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_L2CACHE,
4231 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES,