mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-29 03:16:59 -05:00
Add a new justsynced info bit to position
The value 0 means that the block is scrubbed, and it allows an easy conversion of past content files. Note that past versions ignore this info when using binary content files, then we don't increase the version of the format.
This commit is contained in:
parent
5537c9339e
commit
9a5f30cd32
4 changed files with 41 additions and 11 deletions
|
|
@ -415,7 +415,7 @@ static int state_scrub_process(struct snapraid_state* state, struct snapraid_par
|
|||
}
|
||||
|
||||
if (silent_error_on_this_block || io_error_on_this_block) {
|
||||
/* set the error status keeping the existing time and hash */
|
||||
/* set the error status keeping other info */
|
||||
info_set(&state->infoarr, i, info_set_bad(info));
|
||||
} else if (error_on_this_block) {
|
||||
/* do nothing, as this is a generic error */
|
||||
|
|
@ -432,7 +432,7 @@ static int state_scrub_process(struct snapraid_state* state, struct snapraid_par
|
|||
|
||||
/* update the time info of the block */
|
||||
/* and clear any other flag */
|
||||
info_set(&state->infoarr, i, info_make(now, 0, 0));
|
||||
info_set(&state->infoarr, i, info_make(now, 0, 0, 0));
|
||||
}
|
||||
|
||||
/* mark the state as needing write */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue