| 1974 | } |
| 1975 | |
| 1976 | int |
| 1977 | spa_max_replication(spa_t *spa) |
| 1978 | { |
| 1979 | /* |
| 1980 | * As of SPA_VERSION == SPA_VERSION_DITTO_BLOCKS, we are able to |
| 1981 | * handle BPs with more than one DVA allocated. Set our max |
| 1982 | * replication level accordingly. |
| 1983 | */ |
| 1984 | if (spa_version(spa) < SPA_VERSION_DITTO_BLOCKS) |
| 1985 | return (1); |
| 1986 | return (MIN(SPA_DVAS_PER_BP, spa_max_replication_override)); |
| 1987 | } |
| 1988 | |
| 1989 | int |
| 1990 | spa_prev_software_version(spa_t *spa) |
no test coverage detected