mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-29 19:37:06 -05:00
Added interim 1.12 release.
This commit is contained in:
parent
cdba43dea6
commit
69135ec730
4 changed files with 18 additions and 3 deletions
10
check.c
10
check.c
|
|
@ -845,6 +845,16 @@ static int state_check_process(struct snapraid_state* state, int fix, struct sna
|
|||
pathprint(path_from, sizeof(path_from), "%s%s", handle[j].disk->dir, handle[j].file->sub);
|
||||
pathprint(path_to, sizeof(path_to), "%s%s.unrecoverable", handle[j].disk->dir, handle[j].file->sub);
|
||||
|
||||
/* ensure to operate on a closed file */
|
||||
ret = handle_close(&handle[j]);
|
||||
if (ret != 0) {
|
||||
fprintf(stderr, "Error closing '%s'. %s.\n", path_from, strerror(errno));
|
||||
fprintf(stderr, "WARNING! Without a working data disk, it isn't possible to fix errors on it.\n");
|
||||
printf("Stopping at block %u\n", i);
|
||||
++unrecoverable_error;
|
||||
goto bail;
|
||||
}
|
||||
|
||||
ret = rename(path_from, path_to);
|
||||
if (ret != 0) {
|
||||
fprintf(stderr, "Error renaming '%s' to '%s'. %s.\n", path_from, path_to, strerror(errno));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue