Lines Matching refs:nspares
2207 uint_t nspares; in spa_load_spares() local
2245 nspares = 0; in spa_load_spares()
2248 ZPOOL_CONFIG_SPARES, &spares, &nspares)); in spa_load_spares()
2250 spa->spa_spares.sav_count = (int)nspares; in spa_load_spares()
2253 if (nspares == 0) in spa_load_spares()
2265 spa->spa_spares.sav_vdevs = kmem_zalloc(nspares * sizeof (void *), in spa_load_spares()
5957 uint_t i, nspares; local
5971 ZPOOL_CONFIG_SPARES, &spares, &nspares));
5972 if (nspares != 0) {
5974 (const nvlist_t * const *)spares, nspares);
5976 &spares, &nspares));
5983 for (i = 0; i < nspares; i++) {
6400 uint_t nspares, nl2cache; local
6552 &spares, &nspares) == 0) {
6556 nspares);
6717 uint_t nspares, nl2cache; local
6821 &spares, &nspares) == 0) {
6829 nspares);
7277 uint_t nspares, nl2cache; local
7290 &nspares) != 0)
7291 nspares = 0;
7297 if (vd->vdev_children == 0 && nspares == 0 && nl2cache == 0)
7313 ZPOOL_CONFIG_SPARES, &spares, &nspares) != 0)
7314 nspares = 0;
7379 if (nspares != 0) {
7380 spa_set_aux_vdevs(&spa->spa_spares, spares, nspares,