1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 3785 unchanged lines hidden (view full) --- 3794 */ 3795 nchildren = 0; 3796 VERIFY(nvlist_lookup_uint64(best_cfg, ZPOOL_CONFIG_VDEV_CHILDREN, 3797 &nchildren) == 0); 3798 holes = NULL; 3799 nvlist_lookup_uint64_array(best_cfg, ZPOOL_CONFIG_HOLE_ARRAY, 3800 &holes, &nholes); 3801 |
3802 tops = kmem_zalloc(nchildren * sizeof(void *), KM_SLEEP); |
3803 for (i = 0; i < nchildren; i++) { 3804 if (i >= count) 3805 break; 3806 if (configs[i] == NULL) 3807 continue; 3808 VERIFY(nvlist_lookup_nvlist(configs[i], ZPOOL_CONFIG_VDEV_TREE, 3809 &nvtop) == 0); 3810 nvlist_dup(nvtop, &tops[i], KM_SLEEP); --- 2836 unchanged lines hidden --- |