spa.c (254112) | spa.c (254591) |
---|---|
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 --- 3410 unchanged lines hidden (view full) --- 3419 if (error == 0 && !zfs_allocatable_devs(nvroot)) 3420 error = SET_ERROR(EINVAL); 3421 3422 if (error == 0 && 3423 (error = vdev_create(rvd, txg, B_FALSE)) == 0 && 3424 (error = spa_validate_aux(spa, nvroot, txg, 3425 VDEV_ALLOC_ADD)) == 0) { 3426 for (int c = 0; c < rvd->vdev_children; c++) { | 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 --- 3410 unchanged lines hidden (view full) --- 3419 if (error == 0 && !zfs_allocatable_devs(nvroot)) 3420 error = SET_ERROR(EINVAL); 3421 3422 if (error == 0 && 3423 (error = vdev_create(rvd, txg, B_FALSE)) == 0 && 3424 (error = spa_validate_aux(spa, nvroot, txg, 3425 VDEV_ALLOC_ADD)) == 0) { 3426 for (int c = 0; c < rvd->vdev_children; c++) { |
3427 vdev_ashift_optimize(rvd->vdev_child[c]); |
|
3427 vdev_metaslab_set_size(rvd->vdev_child[c]); 3428 vdev_expand(rvd->vdev_child[c], txg); 3429 } 3430 } 3431 3432 spa_config_exit(spa, SCL_ALL, FTAG); 3433 3434 if (error != 0) { --- 3318 unchanged lines hidden --- | 3428 vdev_metaslab_set_size(rvd->vdev_child[c]); 3429 vdev_expand(rvd->vdev_child[c], txg); 3430 } 3431 } 3432 3433 spa_config_exit(spa, SCL_ALL, FTAG); 3434 3435 if (error != 0) { --- 3318 unchanged lines hidden --- |