From 8f953903cc234edf5009f50e939ed0a8fca5eae4 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Fri, 16 Aug 2013 22:15:23 +0200 Subject: [PATCH] Computes correctly the parity size when reading the content file. --- state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/state.c b/state.c index 838d7c85..6ce39b81 100644 --- a/state.c +++ b/state.c @@ -982,7 +982,7 @@ void state_read(struct snapraid_state* state) /* keep track of the max block number used in parity */ if (v_pos > blockmax) - blockmax = v_pos; + blockmax = v_pos + 1; /* read the hash only for 'blk/inv/chg', and not for 'new' */ if (tag[0] != 'n') {