mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-05 06:10:13 -05:00
Changes the import command to use a new timestamp recognition.
This avoid the need of prehashing all the data, that could be very slow.
This commit is contained in:
parent
51356b55b0
commit
e17f12f26b
7 changed files with 48 additions and 13 deletions
|
|
@ -148,11 +148,12 @@ void import_file_free(struct snapraid_import_file* file)
|
|||
free(file);
|
||||
}
|
||||
|
||||
int state_import_fetch(struct snapraid_state* state, int rehash, const unsigned char* hash, unsigned char* buffer)
|
||||
int state_import_fetch(struct snapraid_state* state, int rehash, struct snapraid_block* missing_block, unsigned char* buffer)
|
||||
{
|
||||
struct snapraid_import_block* block;
|
||||
int ret;
|
||||
int f;
|
||||
const unsigned char* hash = missing_block->hash;
|
||||
unsigned block_size = state->block_size;
|
||||
unsigned read_size;
|
||||
unsigned char buffer_hash[HASH_SIZE];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue