Even better error management. More precise and explicative.

This commit is contained in:
Andrea Mazzoleni 2011-03-19 22:00:08 +01:00
parent 37c68721a1
commit e80009334b
7 changed files with 108 additions and 37 deletions

View file

@ -29,6 +29,9 @@
void state_init(struct snapraid_state* state)
{
state->verbose = 0;
state->force_zero = 0;
state->force_empty = 0;
state->need_write = 0;
state->block_size = 256 * 1024; /* default 256 kB */
state->content[0] = 0;
state->parity[0] = 0;