Lines Matching defs:spares

1332  * Load (or re-load) the current list of vdevs describing the active spares for
1340 nvlist_t **spares;
1369 ZPOOL_CONFIG_SPARES, &spares, &nspares) == 0);
1380 * structures associated with it: one in the list of spares (used only
1389 VERIFY(spa_config_parse(spa, &vd, spares[i], NULL, 0,
1428 * Recompute the stashed list of spares, with status information
1434 spares = kmem_alloc(spa->spa_spares.sav_count * sizeof (void *),
1437 spares[i] = vdev_config_generate(spa,
1440 ZPOOL_CONFIG_SPARES, spares, spa->spa_spares.sav_count) == 0);
1442 nvlist_free(spares[i]);
1443 kmem_free(spares, spa->spa_spares.sav_count * sizeof (void *));
2680 * an existing pool, we don't want to attach the spares & cache
2685 * Load any hot spares for this pool.
3201 * Add spares device information to the nvlist.
3206 nvlist_t **spares;
3222 ZPOOL_CONFIG_SPARES, &spares, &nspares) == 0);
3225 ZPOOL_CONFIG_SPARES, spares, nspares) == 0);
3227 ZPOOL_CONFIG_SPARES, &spares, &nspares) == 0);
3230 * Go through and find any spares which have since been
3235 VERIFY(nvlist_lookup_uint64(spares[i],
3240 spares[i], ZPOOL_CONFIG_VDEV_STATS,
3357 * This still leaves a window of inconsistency where the spares
3416 * import (mode is VDEV_ALLOC_SPARE), then we allow corrupted spares to be
3600 nvlist_t **spares, **l2cache;
3693 * Get the list of spares, if specified.
3696 &spares, &nspares) == 0) {
3700 ZPOOL_CONFIG_SPARES, spares, nspares) == 0);
4055 nvlist_t **spares, **l2cache;
4164 * Override any spares and level 2 cache devices as specified by
4168 &spares, &nspares) == 0) {
4176 ZPOOL_CONFIG_SPARES, spares, nspares) == 0);
4304 * Add the list of hot spares and level 2 cache devices.
4478 nvlist_t **spares, **l2cache;
4491 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, &spares,
4507 * We must validate the spares and l2cache devices after checking the
4535 spa_set_aux_vdevs(&spa->spa_spares, spares, nspares,
4642 * Active hot spares can only be replaced by inactive hot
4643 * spares.
4912 * If we need to remove the remaining child from the list of hot spares,
5010 /* search the rest of the vdevs for spares to remove */
5453 * Currently, this supports removing only hot spares, slogs, and level 2 ARC
5462 nvlist_t **spares, **l2cache, *nv;
5477 ZPOOL_CONFIG_SPARES, &spares, &nspares) == 0 &&
5478 (nv = spa_nvlist_lookup_by_guid(spares, nspares, guid)) != NULL) {
5488 ZPOOL_CONFIG_SPARES, spares, nspares, nv);
5626 * If there are more than two spares attached to a disk,
5627 * and those spares are not required, then we want to