From 3ca51ec426ec3d8dd41e606389fd01f38a2df04d Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Sat, 5 Apr 2014 16:12:26 +0200 Subject: [PATCH] Logs about fixing with import. --- cmdline/check.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmdline/check.c b/cmdline/check.c index ffb82c62..c55dc9cd 100644 --- a/cmdline/check.c +++ b/cmdline/check.c @@ -92,7 +92,7 @@ static int blockcmp(struct snapraid_state* state, int rehash, struct snapraid_bl } /** - * Checks if the hash of at least one failed block is now matching. + * Checks if the hash of all the failed block we are expecting to recover are now matching. */ static int is_hash_matching(struct snapraid_state* state, int rehash, unsigned diskmax, struct failed_struct* failed, unsigned* failed_map, unsigned failed_count, void** buffer, void* buffer_zero) { @@ -372,6 +372,7 @@ static int repair(struct snapraid_state* state, int rehash, unsigned pos, unsign && state_import_fetch(state, rehash, failed[j].block->hash, buffer[failed[j].index]) == 0 ) { /* we already have corrected it! */ + fprintf(stdlog, "hash_import: Fixed entry %u\n", j); } else { /* otherwise try to recover it */ failed_map[n] = j;