Better handling of return value in handle_create().

This commit is contained in:
Andrea Mazzoleni 2013-06-01 22:49:38 +02:00
parent a84bd62ee6
commit 5c0b7d2e6c
3 changed files with 27 additions and 19 deletions

View file

@ -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;