From a1dadcc37402d09ff0f601e379ef8e090c48d215 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Mon, 3 Feb 2014 19:05:22 +0100 Subject: [PATCH] Test the memory block used for hashing. --- sync.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sync.c b/sync.c index 92c9dee7..7b4d22d7 100644 --- a/sync.c +++ b/sync.c @@ -45,6 +45,8 @@ static void state_hash_process(struct snapraid_state* state, block_off_t blockst /* buffer for reading */ buffer = malloc_nofail(state->block_size); + if (!state->opt.skip_self) + mtest_vector(1, state->block_size, &buffer); error = 0;