Prints list of files outside the parity if growing is not possible.

This commit is contained in:
Andrea Mazzoleni 2012-10-06 13:17:21 +02:00
parent 3a8f21a839
commit 8373233f25
6 changed files with 114 additions and 26 deletions

View file

@ -1190,7 +1190,7 @@ void state_check(struct snapraid_state* state, int fix, block_off_t blockstart,
/* if fixing, create the file and open for writing */
/* if it fails, we cannot continue */
parity_ptr = &parity;
ret = parity_create(parity_ptr, state->parity, size);
ret = parity_create(parity_ptr, state->parity, size, 0);
if (ret == -1) {
fprintf(stderr, "WARNING! Without an accessible Parity file, it isn't possible to fix any error.\n");
exit(EXIT_FAILURE);
@ -1198,7 +1198,7 @@ void state_check(struct snapraid_state* state, int fix, block_off_t blockstart,
if (state->level >= 2) {
qarity_ptr = &qarity;
ret = parity_create(qarity_ptr, state->qarity, size);
ret = parity_create(qarity_ptr, state->qarity, size, 0);
if (ret == -1) {
fprintf(stderr, "WARNING! Without an accessible Q-Parity file, it isn't possible to fix any error.\n");
exit(EXIT_FAILURE);