mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-19 22:46:36 -05:00
Better handling of return value in handle_create().
This commit is contained in:
parent
a84bd62ee6
commit
5c0b7d2e6c
3 changed files with 27 additions and 19 deletions
2
check.c
2
check.c
|
|
@ -618,7 +618,7 @@ static int state_check_process(struct snapraid_state* state, int check, int fix,
|
|||
}
|
||||
|
||||
/* check if the file was larger and now truncated */
|
||||
if (ret == 1) {
|
||||
if (handle[j].truncated != 0) {
|
||||
fprintf(stdlog, "File '%s' is larger than expected.\n", handle[j].path);
|
||||
fprintf(stdlog, "error:%u:%s:%s: Size error\n", i, handle[j].disk->name, block_file_get(block)->sub);
|
||||
++error;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue