mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-26 01:46:32 -05:00
Add the "maybe" function also to par2block
This commit is contained in:
parent
83889b4fbb
commit
74fa6e9274
10 changed files with 41 additions and 24 deletions
|
|
@ -121,7 +121,7 @@ static void scrub_data_reader(struct snapraid_worker* worker, struct snapraid_ta
|
|||
}
|
||||
|
||||
/* get the block */
|
||||
task->block = fs_par2block_get(disk, blockcur);
|
||||
task->block = fs_par2block_maybe(disk, blockcur);
|
||||
|
||||
/* if the block is not used */
|
||||
if (!block_has_file(task->block)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue