mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-04 13:50:09 -05:00
Change the return code for 'diff' if a sync is required
This commit is contained in:
parent
9b4f41d7ff
commit
5c5e80a239
10 changed files with 38 additions and 22 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue