Check that the parity was fully allocated

We must check if any remaining size is left to be
allocated.
This commit is contained in:
Andrea Mazzoleni 2016-09-28 18:55:03 +02:00
parent a4c813bf8d
commit 422d642591
2 changed files with 7 additions and 1 deletions

View file

@ -1518,7 +1518,7 @@ int state_sync(struct snapraid_state* state, block_off_t blockstart, block_off_t
data_off_t out_size;
parity_size(&parity_handle[l], &out_size);
parity_overflow(state, out_size);
log_fatal("WARNING! Without an accessible %s file, it isn't possible to sync.\n", lev_name(l));
log_fatal("WARNING! Without an unsable %s file, it isn't possible to sync.\n", lev_name(l));
exit(EXIT_FAILURE);
/* LCOV_EXCL_STOP */
}