Make the hash size configurable

Only at source code level.
This commit is contained in:
Andrea Mazzoleni 2016-04-07 21:39:02 +02:00
parent 7c910af3f9
commit 5b06549ee3
16 changed files with 115 additions and 78 deletions

View file

@ -220,7 +220,7 @@ static void scan_file_allocate(struct snapraid_scan* scan, struct snapraid_file*
assert(over_state == BLOCK_STATE_DELETED);
/* copy the past hash of the block */
memcpy(block->hash, over_block->hash, HASH_SIZE);
memcpy(block->hash, over_block->hash, BLOCK_HASH_SIZE);
/* if we have not already cleared the past hash */
if (!state->clear_past_hash) {