Fixes again the parity size computation when reading.

This commit is contained in:
Andrea Mazzoleni 2013-08-17 11:58:31 +02:00
parent 235a9cbbf1
commit d87f371a1d

View file

@ -981,7 +981,7 @@ void state_read(struct snapraid_state* state)
hash = oathash32(hash, v_pos);
/* keep track of the max block number used in parity */
if (v_pos > blockmax)
if (v_pos + 1 > blockmax)
blockmax = v_pos + 1;
/* read the hash only for 'blk/chg', and not for 'new' */