Change the return code for 'diff' if a sync is required

This commit is contained in:
Andrea Mazzoleni 2015-04-28 19:15:16 +02:00
parent 9b4f41d7ff
commit 5c5e80a239
10 changed files with 38 additions and 22 deletions

View file

@ -1748,11 +1748,11 @@ static int state_diffscan(struct snapraid_state* state, int is_diff)
if (is_diff) {
/* check for file difference */
if (!no_difference)
return -1;
return 1;
/* check also for incomplete "sync" */
if (parity_is_invalid(state))
return -1;
return 1;
}
return 0;