mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-22 07:56:33 -05:00
Make -F to not reallocate parity
This is now done by the new -R option.
This commit is contained in:
parent
eb039e8186
commit
b1fc75adab
9 changed files with 88 additions and 20 deletions
|
|
@ -2013,10 +2013,10 @@ static void state_read_content(struct snapraid_state* state, const char* path, S
|
|||
block_state_set(block, BLOCK_STATE_CHG);
|
||||
}
|
||||
|
||||
/* if we want a full sync, marks block as invalid parity */
|
||||
/* if we want a full reallocation, marks block as invalid parity */
|
||||
/* note that we do this after the force_nocopy option */
|
||||
/* to avoid to mixup the two things */
|
||||
if (state->opt.force_full
|
||||
if (state->opt.force_realloc
|
||||
&& block_state_get(block) == BLOCK_STATE_BLK) {
|
||||
/* convert from BLK to REP */
|
||||
block_state_set(block, BLOCK_STATE_REP);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue