Skip to main content

parity_count

Function parity_count 

Source
pub fn parity_count(n: usize, pct: u32, cap: usize) -> usize
Expand description

Parity chunks for an n-chunk block at pct overhead.

Always at least 1 when pct > 0: a tiny block still deserves protection, and n = 1, k = 1 degenerates to a plain duplicate, which is right.