mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-23 00:16: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
|
|
@ -303,7 +303,7 @@ int state_status(struct snapraid_state* state)
|
|||
one_valid = 0;
|
||||
for (node_disk = state->disklist; node_disk != 0; node_disk = node_disk->next) {
|
||||
struct snapraid_disk* disk = node_disk->data;
|
||||
struct snapraid_block* block = fs_par2block_get(disk, i);
|
||||
struct snapraid_block* block = fs_par2block_maybe(disk, i);
|
||||
|
||||
if (block_has_file(block))
|
||||
one_valid = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue