Lines Matching refs:spares

1393  * Load (or re-load) the current list of vdevs describing the active spares for
1401 nvlist_t **spares;
1430 ZPOOL_CONFIG_SPARES, &spares, &nspares) == 0);
1441 * structures associated with it: one in the list of spares (used only
1450 VERIFY(spa_config_parse(spa, &vd, spares[i], NULL, 0,
1489 * Recompute the stashed list of spares, with status information
1495 spares = kmem_alloc(spa->spa_spares.sav_count * sizeof (void *),
1498 spares[i] = vdev_config_generate(spa,
1501 ZPOOL_CONFIG_SPARES, spares, spa->spa_spares.sav_count) == 0);
1503 nvlist_free(spares[i]);
1504 kmem_free(spares, spa->spa_spares.sav_count * sizeof (void *));
2756 * an existing pool, we don't want to attach the spares & cache
2761 * Load any hot spares for this pool.
3286 * Add spares device information to the nvlist.
3291 nvlist_t **spares;
3307 ZPOOL_CONFIG_SPARES, &spares, &nspares) == 0);
3310 ZPOOL_CONFIG_SPARES, spares, nspares) == 0);
3312 ZPOOL_CONFIG_SPARES, &spares, &nspares) == 0);
3315 * Go through and find any spares which have since been
3320 VERIFY(nvlist_lookup_uint64(spares[i],
3325 spares[i], ZPOOL_CONFIG_VDEV_STATS,
3447 * This still leaves a window of inconsistency where the spares
3506 * import (mode is VDEV_ALLOC_SPARE), then we allow corrupted spares to be
3690 nvlist_t **spares, **l2cache;
3784 * Get the list of spares, if specified.
3787 &spares, &nspares) == 0) {
3791 ZPOOL_CONFIG_SPARES, spares, nspares) == 0);
4343 nvlist_t **spares, **l2cache;
4452 * Override any spares and level 2 cache devices as specified by
4456 &spares, &nspares) == 0) {
4464 ZPOOL_CONFIG_SPARES, spares, nspares) == 0);
4597 * Add the list of hot spares and level 2 cache devices.
4771 nvlist_t **spares, **l2cache;
4784 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, &spares,
4800 * We must validate the spares and l2cache devices after checking the
4828 spa_set_aux_vdevs(&spa->spa_spares, spares, nspares,
4935 * Active hot spares can only be replaced by inactive hot
4936 * spares.
5205 * If we need to remove the remaining child from the list of hot spares,
5303 /* search the rest of the vdevs for spares to remove */
5753 * Currently, this supports removing only hot spares, slogs, and level 2 ARC
5762 nvlist_t **spares, **l2cache, *nv;
5777 ZPOOL_CONFIG_SPARES, &spares, &nspares) == 0 &&
5778 (nv = spa_nvlist_lookup_by_guid(spares, nspares, guid)) != NULL) {
5788 ZPOOL_CONFIG_SPARES, spares, nspares, nv);
5926 * If there are more than two spares attached to a disk,
5927 * and those spares are not required, then we want to