mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-21 23:46:27 -05:00
Improves recovering after an aborted sync.
This commit is contained in:
parent
f14ab1aa3b
commit
55fae37e7f
13 changed files with 758 additions and 137 deletions
4
dry.c
4
dry.c
|
|
@ -53,11 +53,11 @@ static int state_dry_process(struct snapraid_state* state, struct snapraid_parit
|
|||
/* for each disk, process the block */
|
||||
for(j=0;j<diskmax;++j) {
|
||||
int read_size;
|
||||
struct snapraid_block* block = 0;
|
||||
struct snapraid_block* block = BLOCK_EMPTY;
|
||||
|
||||
if (handle[j].disk)
|
||||
block = disk_block_get(handle[j].disk, i);
|
||||
if (!block)
|
||||
if (!block_is_valid(block))
|
||||
continue;
|
||||
|
||||
/* if the file is different than the current one, close it */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue