Lines Matching defs:spares
2201 * Load (or re-load) the current list of vdevs describing the active spares for
2209 nvlist_t **spares;
2251 ZPOOL_CONFIG_SPARES, &spares, &nspares));
2262 * structures associated with it: one in the list of spares (used only
2271 VERIFY(spa_config_parse(spa, &vd, spares[i], NULL, 0,
2310 * Recompute the stashed list of spares, with status information
2315 spares = kmem_alloc(spa->spa_spares.sav_count * sizeof (void *),
2318 spares[i] = vdev_config_generate(spa,
2321 ZPOOL_CONFIG_SPARES, (const nvlist_t * const *)spares,
2324 nvlist_free(spares[i]);
2325 kmem_free(spares, spa->spa_spares.sav_count * sizeof (void *));
4840 * an existing pool, we don't want to attach the spares & cache
4845 * Load any hot spares for this pool.
4855 spa_load_failed(spa, "error loading spares nvlist");
5460 * Retrieve the list of auxiliary devices - cache devices and spares -
5954 * Add spares device information to the nvlist.
5959 nvlist_t **spares;
5974 ZPOOL_CONFIG_SPARES, &spares, &nspares));
5977 (const nvlist_t * const *)spares, nspares);
5979 &spares, &nspares));
5982 * Go through and find any spares which have since been
5987 guid = fnvlist_lookup_uint64(spares[i],
5989 VERIFY0(nvlist_lookup_uint64_array(spares[i],
6155 * This still leaves a window of inconsistency where the spares
6218 * import (mode is VDEV_ALLOC_SPARE), then we allow corrupted spares to be
6402 nvlist_t **spares, **l2cache;
6552 * Get the list of spares, if specified.
6555 &spares, &nspares) == 0) {
6558 ZPOOL_CONFIG_SPARES, (const nvlist_t * const *)spares,
6719 nvlist_t **spares, **l2cache;
6820 * Override any spares and level 2 cache devices as specified by
6824 &spares, &nspares) == 0) {
6831 ZPOOL_CONFIG_SPARES, (const nvlist_t * const *)spares,
7000 * Add the list of hot spares and level 2 cache devices.
7279 nvlist_t **spares, **l2cache;
7292 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, &spares,
7309 * The virtual dRAID spares must be added after vdev tree is created
7316 ZPOOL_CONFIG_SPARES, &spares, &nspares) != 0)
7323 * We must validate the spares and l2cache devices after checking the
7383 spa_set_aux_vdevs(&spa->spa_spares, spares, nspares,
7536 * log, dedup and special vdevs should not be replaced by spares.
7582 * Active hot spares can only be replaced by inactive hot
7583 * spares.
7931 * from the active spare list for the pool. dRAID spares on the
7933 * from the spares list.
7966 * If we need to remove the remaining child from the list of hot spares,
8064 /* search the rest of the vdevs for spares to remove */
8735 * If there are more than two spares attached to a disk,
8736 * and those spares are not required, then we want to