spa.c (244635) | spa.c (245945) |
---|---|
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 --- 3778 unchanged lines hidden (view full) --- 3787 best_txg = txg; 3788 best_cfg = configs[i]; 3789 } 3790 } 3791 3792 /* 3793 * Multi-vdev root pool configuration discovery is not supported yet. 3794 */ | 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 --- 3778 unchanged lines hidden (view full) --- 3787 best_txg = txg; 3788 best_cfg = configs[i]; 3789 } 3790 } 3791 3792 /* 3793 * Multi-vdev root pool configuration discovery is not supported yet. 3794 */ |
3795 nchildren = 0; 3796 VERIFY(nvlist_lookup_uint64(best_cfg, ZPOOL_CONFIG_VDEV_CHILDREN, 3797 &nchildren) == 0); | 3795 nchildren = 1; 3796 nvlist_lookup_uint64(best_cfg, ZPOOL_CONFIG_VDEV_CHILDREN, &nchildren); |
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; --- 2841 unchanged lines hidden --- | 3797 holes = NULL; 3798 nvlist_lookup_uint64_array(best_cfg, ZPOOL_CONFIG_HOLE_ARRAY, 3799 &holes, &nholes); 3800 3801 tops = kmem_zalloc(nchildren * sizeof(void *), KM_SLEEP); 3802 for (i = 0; i < nchildren; i++) { 3803 if (i >= count) 3804 break; --- 2841 unchanged lines hidden --- |