Merge branch 'b4'

Conflicts:
	HISTORY
	configure.ac
	state.c
	state.h
This commit is contained in:
Andrea Mazzoleni 2013-10-21 19:52:28 +02:00
commit 6c3d84d775
4 changed files with 36 additions and 5 deletions

2
sync.c
View file

@ -504,7 +504,7 @@ int state_sync(struct snapraid_state* state, block_off_t blockstart, block_off_t
blockmax = parity_size(state);
size = blockmax * (data_off_t)state->block_size;
loaded_size = state->loaded_blockmax * (data_off_t)state->block_size;
loaded_size = state->loaded_paritymax * (data_off_t)state->block_size;
if (blockstart > blockmax) {
fprintf(stderr, "Error in the starting block %u. It's bigger than the parity size %u.\n", blockstart, blockmax);