From d87f371a1d57a7497c068e85af1f823b179313ee Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Sat, 17 Aug 2013 11:58:31 +0200 Subject: [PATCH] Fixes again the parity size computation when reading. --- state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/state.c b/state.c index c5ae78ba..0020b3ee 100644 --- a/state.c +++ b/state.c @@ -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' */