mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-20 06:56:28 -05:00
Adds some more undocumented --test options.
This commit is contained in:
parent
e6c44e715a
commit
4c058d25e2
8 changed files with 70 additions and 27 deletions
4
sync.c
4
sync.c
|
|
@ -422,7 +422,7 @@ int state_sync(struct snapraid_state* state, block_off_t blockstart, block_off_t
|
|||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
ret = parity_chsize(parity_ptr, size, &out_size);
|
||||
ret = parity_chsize(parity_ptr, size, &out_size, state->skip_fallocate);
|
||||
if (ret == -1) {
|
||||
parity_overflow(state, out_size);
|
||||
fprintf(stderr, "WARNING! Without an accessible Parity file, it isn't possible to sync.\n");
|
||||
|
|
@ -443,7 +443,7 @@ int state_sync(struct snapraid_state* state, block_off_t blockstart, block_off_t
|
|||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
ret = parity_chsize(qarity_ptr, size, &out_size);
|
||||
ret = parity_chsize(qarity_ptr, size, &out_size, state->skip_fallocate);
|
||||
if (ret == -1) {
|
||||
parity_overflow(state, out_size);
|
||||
fprintf(stderr, "WARNING! Without an accessible Q-Parity file, it isn't possible to sync.\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue