mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
When Data error are detected prints the full path of the file.
This commit is contained in:
parent
db330b9d0b
commit
caa7b5d054
2 changed files with 1 additions and 4 deletions
3
TODO
3
TODO
|
|
@ -5,9 +5,6 @@ This is the list of TODO items for SnapRAID.
|
|||
|
||||
- v3.1
|
||||
|
||||
* Add an option to allow to save "system" files if they matches a specific pattern.
|
||||
Some programs in Windows uses this attribute to hide files that contains valuable data.
|
||||
|
||||
* If the fix process is interrupted by pressing Ctrl+C, we should rename files partially
|
||||
recovered to .unrecoverable, if there were created originally missing from the array.
|
||||
This could be detect checking the size just after creation.
|
||||
|
|
|
|||
2
sync.c
2
sync.c
|
|
@ -249,7 +249,7 @@ static int state_sync_process(struct snapraid_state* state, struct snapraid_pari
|
|||
if (block_has_hash(block)) {
|
||||
/* compare the hash */
|
||||
if (memcmp(hash, block->hash, HASH_SIZE) != 0) {
|
||||
fprintf(stderr, "%u: Data error for file %s at position %u\n", i, block_file_get(block)->sub, block_file_pos(block));
|
||||
fprintf(stderr, "Data error in file '%s' at position '%u'\n", handle[j].path, block_file_pos(block));
|
||||
fprintf(stderr, "DANGER! Unexpected data error in a data disk, it isn't possible to sync.\n");
|
||||
printf("Stopping to allow recovery. Try with 'snapraid -s %u check'\n", i);
|
||||
++unrecoverable_error;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue