Lines Matching defs:nspares
1327 uint_t nspares;
1352 nspares = 0;
1355 ZPOOL_CONFIG_SPARES, &spares, &nspares) == 0);
1357 spa->spa_spares.sav_count = (int)nspares;
1360 if (nspares == 0)
1372 spa->spa_spares.sav_vdevs = kmem_alloc(nspares * sizeof (void *),
3092 uint_t i, nspares;
3107 ZPOOL_CONFIG_SPARES, &spares, &nspares) == 0);
3108 if (nspares != 0) {
3110 ZPOOL_CONFIG_SPARES, spares, nspares) == 0);
3112 ZPOOL_CONFIG_SPARES, &spares, &nspares) == 0);
3119 for (i = 0; i < nspares; i++) {
3486 uint_t nspares, nl2cache;
3580 &spares, &nspares) == 0) {
3584 ZPOOL_CONFIG_SPARES, spares, nspares) == 0);
3939 uint_t nspares, nl2cache;
4051 &spares, &nspares) == 0) {
4059 ZPOOL_CONFIG_SPARES, spares, nspares) == 0);
4362 uint_t nspares, nl2cache;
4375 &nspares) != 0)
4376 nspares = 0;
4382 if (vd->vdev_children == 0 && nspares == 0 && nl2cache == 0)
4417 if (nspares != 0) {
4418 spa_set_aux_vdevs(&spa->spa_spares, spares, nspares,
5332 uint_t nspares, nl2cache;
5345 ZPOOL_CONFIG_SPARES, &spares, &nspares) == 0 &&
5346 (nv = spa_nvlist_lookup_by_guid(spares, nspares, guid)) != NULL) {
5353 ZPOOL_CONFIG_SPARES, spares, nspares, nv);