mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Groups recover operations by disk, not by recover kind.
This commit is contained in:
parent
a0a213664b
commit
3cb0a2b8b4
1 changed files with 2 additions and 20 deletions
22
check.c
22
check.c
|
|
@ -937,8 +937,8 @@ static int state_check_process(struct snapraid_state* state, int check, int fix,
|
|||
}
|
||||
}
|
||||
|
||||
/* check all the files with empty size */
|
||||
/* they have no block, and so skipped by previous checks */
|
||||
|
||||
/* for each disk, recover empty files, symlinks and empty dirs */
|
||||
for(i=0;i<diskmax;++i) {
|
||||
tommy_node* node;
|
||||
struct snapraid_disk* disk;
|
||||
|
|
@ -1024,15 +1024,6 @@ static int state_check_process(struct snapraid_state* state, int check, int fix,
|
|||
++recovered_error;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* check all the links */
|
||||
for(i=0;i<diskmax;++i) {
|
||||
tommy_node* node;
|
||||
struct snapraid_disk* disk;
|
||||
|
||||
if (!handle[i].disk)
|
||||
continue;
|
||||
|
||||
/* for each link in the disk */
|
||||
disk = handle[i].disk;
|
||||
|
|
@ -1116,15 +1107,6 @@ static int state_check_process(struct snapraid_state* state, int check, int fix,
|
|||
++recovered_error;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* check all dirs */
|
||||
for(i=0;i<diskmax;++i) {
|
||||
tommy_node* node;
|
||||
struct snapraid_disk* disk;
|
||||
|
||||
if (!handle[i].disk)
|
||||
continue;
|
||||
|
||||
/* for each dir in the disk */
|
||||
disk = handle[i].disk;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue