Lines Matching defs:nspares
1402 uint_t nspares;
1427 nspares = 0;
1430 ZPOOL_CONFIG_SPARES, &spares, &nspares) == 0);
1432 spa->spa_spares.sav_count = (int)nspares;
1435 if (nspares == 0)
1447 spa->spa_spares.sav_vdevs = kmem_alloc(nspares * sizeof (void *),
3292 uint_t i, nspares;
3307 ZPOOL_CONFIG_SPARES, &spares, &nspares) == 0);
3308 if (nspares != 0) {
3310 ZPOOL_CONFIG_SPARES, spares, nspares) == 0);
3312 ZPOOL_CONFIG_SPARES, &spares, &nspares) == 0);
3319 for (i = 0; i < nspares; i++) {
3691 uint_t nspares, nl2cache;
3787 &spares, &nspares) == 0) {
3791 ZPOOL_CONFIG_SPARES, spares, nspares) == 0);
4344 uint_t nspares, nl2cache;
4456 &spares, &nspares) == 0) {
4464 ZPOOL_CONFIG_SPARES, spares, nspares) == 0);
4772 uint_t nspares, nl2cache;
4785 &nspares) != 0)
4786 nspares = 0;
4792 if (vd->vdev_children == 0 && nspares == 0 && nl2cache == 0)
4827 if (nspares != 0) {
4828 spa_set_aux_vdevs(&spa->spa_spares, spares, nspares,
5764 uint_t nspares, nl2cache;
5777 ZPOOL_CONFIG_SPARES, &spares, &nspares) == 0 &&
5778 (nv = spa_nvlist_lookup_by_guid(spares, nspares, guid)) != NULL) {
5788 ZPOOL_CONFIG_SPARES, spares, nspares, nv);