mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-20 06:56:28 -05:00
Fixes a crash if a file is deleted during a sync/scrub.
This commit is contained in:
parent
a7d6b86b7b
commit
52eb4675d3
4 changed files with 21 additions and 12 deletions
4
dry.c
4
dry.c
|
|
@ -71,7 +71,7 @@ static int state_dry_process(struct snapraid_state* state, struct snapraid_parit
|
|||
/* close the old one, if any */
|
||||
ret = handle_close(&handle[j]);
|
||||
if (ret == -1) {
|
||||
fprintf(stderr, "DANGER! Unexpected close error in a data disk, it isn't possible to rehash.\n");
|
||||
fprintf(stderr, "DANGER! Unexpected close error in a data disk, it isn't possible to dry.\n");
|
||||
printf("Stopping at block %u\n", i);
|
||||
++error;
|
||||
goto bail;
|
||||
|
|
@ -80,7 +80,7 @@ static int state_dry_process(struct snapraid_state* state, struct snapraid_parit
|
|||
/* open the file only for reading */
|
||||
ret = handle_open(&handle[j], block_file_get(block), state->opt.skip_sequential, stdlog);
|
||||
if (ret == -1) {
|
||||
fprintf(stderr, "DANGER! Unexpected open error in a data disk, it isn't possible to rehash.\n");
|
||||
fprintf(stderr, "DANGER! Unexpected open error in a data disk, it isn't possible to dry.\n");
|
||||
printf("Stopping at block %u\n", i);
|
||||
++error;
|
||||
goto bail;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue