diff --git a/TODO b/TODO index 2b079b66..10950f48 100644 --- a/TODO +++ b/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. diff --git a/sync.c b/sync.c index e045be36..127801bb 100644 --- a/sync.c +++ b/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;