mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-20 15:06:34 -05:00
Allow to disable the multithread mode
Use the --test-io-cache=1 option to use a special monothread mode.
This commit is contained in:
parent
1ed5a25f79
commit
fe3ad31cbb
6 changed files with 350 additions and 142 deletions
|
|
@ -1221,6 +1221,9 @@ static int state_sync_process(struct snapraid_state* state, struct snapraid_pari
|
|||
/* This because we want to keep track of the time usage */
|
||||
state_usage_misc(state);
|
||||
|
||||
/* write start */
|
||||
io_write_preset(&io, blockcur, !parity_going_to_be_updated);
|
||||
|
||||
/* write the parity */
|
||||
for (l = 0; l < state->level; ++l) {
|
||||
unsigned levcur;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue