Adds some more undocumented --test options.

This commit is contained in:
Andrea Mazzoleni 2013-02-28 23:06:42 +01:00
parent e6c44e715a
commit 4c058d25e2
8 changed files with 70 additions and 27 deletions

4
sync.c
View file

@ -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");