Lines Matching refs:nspares
1341 uint_t nspares;
1366 nspares = 0;
1369 ZPOOL_CONFIG_SPARES, &spares, &nspares) == 0);
1371 spa->spa_spares.sav_count = (int)nspares;
1374 if (nspares == 0)
1386 spa->spa_spares.sav_vdevs = kmem_alloc(nspares * sizeof (void *),
3207 uint_t i, nspares;
3222 ZPOOL_CONFIG_SPARES, &spares, &nspares) == 0);
3223 if (nspares != 0) {
3225 ZPOOL_CONFIG_SPARES, spares, nspares) == 0);
3227 ZPOOL_CONFIG_SPARES, &spares, &nspares) == 0);
3234 for (i = 0; i < nspares; i++) {
3601 uint_t nspares, nl2cache;
3696 &spares, &nspares) == 0) {
3700 ZPOOL_CONFIG_SPARES, spares, nspares) == 0);
4056 uint_t nspares, nl2cache;
4168 &spares, &nspares) == 0) {
4176 ZPOOL_CONFIG_SPARES, spares, nspares) == 0);
4479 uint_t nspares, nl2cache;
4492 &nspares) != 0)
4493 nspares = 0;
4499 if (vd->vdev_children == 0 && nspares == 0 && nl2cache == 0)
4534 if (nspares != 0) {
4535 spa_set_aux_vdevs(&spa->spa_spares, spares, nspares,
5464 uint_t nspares, nl2cache;
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);