mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-30 11:56:33 -05:00
Logs about fixing with import.
This commit is contained in:
parent
785a42e97c
commit
3ca51ec426
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
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
|
&& state_import_fetch(state, rehash, failed[j].block->hash, buffer[failed[j].index]) == 0
|
||||||
) {
|
) {
|
||||||
/* we already have corrected it! */
|
/* we already have corrected it! */
|
||||||
|
fprintf(stdlog, "hash_import: Fixed entry %u\n", j);
|
||||||
} else {
|
} else {
|
||||||
/* otherwise try to recover it */
|
/* otherwise try to recover it */
|
||||||
failed_map[n] = j;
|
failed_map[n] = j;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue