Lines Matching refs:spares
2209 nvlist_t **spares; in spa_load_spares() local
2251 ZPOOL_CONFIG_SPARES, &spares, &nspares)); in spa_load_spares()
2271 VERIFY(spa_config_parse(spa, &vd, spares[i], NULL, 0, in spa_load_spares()
2315 spares = kmem_alloc(spa->spa_spares.sav_count * sizeof (void *), in spa_load_spares()
2318 spares[i] = vdev_config_generate(spa, in spa_load_spares()
2321 ZPOOL_CONFIG_SPARES, (const nvlist_t * const *)spares, in spa_load_spares()
2324 nvlist_free(spares[i]); in spa_load_spares()
2325 kmem_free(spares, spa->spa_spares.sav_count * sizeof (void *)); in spa_load_spares()
5959 nvlist_t **spares; local
5974 ZPOOL_CONFIG_SPARES, &spares, &nspares));
5977 (const nvlist_t * const *)spares, nspares);
5979 &spares, &nspares));
5987 guid = fnvlist_lookup_uint64(spares[i],
5989 VERIFY0(nvlist_lookup_uint64_array(spares[i],
6402 nvlist_t **spares, **l2cache; local
6555 &spares, &nspares) == 0) {
6558 ZPOOL_CONFIG_SPARES, (const nvlist_t * const *)spares,
6719 nvlist_t **spares, **l2cache; local
6824 &spares, &nspares) == 0) {
6831 ZPOOL_CONFIG_SPARES, (const nvlist_t * const *)spares,
7279 nvlist_t **spares, **l2cache; local
7292 if (nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, &spares,
7316 ZPOOL_CONFIG_SPARES, &spares, &nspares) != 0)
7383 spa_set_aux_vdevs(&spa->spa_spares, spares, nspares,