mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-20 15:06:34 -05:00
Function renaming to get better consistency
This commit is contained in:
parent
9ade11483e
commit
d2991f736c
10 changed files with 50 additions and 50 deletions
|
|
@ -620,7 +620,7 @@ static int file_post(struct snapraid_state* state, int fix, unsigned i, struct s
|
|||
continue;
|
||||
}
|
||||
|
||||
block = fs_par2block_maybe(disk, i);
|
||||
block = fs_par2block_find(disk, i);
|
||||
if (!block_has_file(block)) {
|
||||
/* if no file, nothing to do */
|
||||
continue;
|
||||
|
|
@ -827,7 +827,7 @@ static int block_is_enabled(struct snapraid_state* state, block_off_t i, struct
|
|||
if (!handle[j].disk)
|
||||
continue;
|
||||
|
||||
block = fs_par2block_maybe(handle[j].disk, i);
|
||||
block = fs_par2block_find(handle[j].disk, i);
|
||||
|
||||
/* try to recover all files, even the ones without hash */
|
||||
/* because in some cases we can recover also them */
|
||||
|
|
@ -948,8 +948,8 @@ static int state_check_process(struct snapraid_state* state, int fix, struct sna
|
|||
}
|
||||
|
||||
/* if the disk block is not used */
|
||||
block = fs_par2block_maybe(disk, i);
|
||||
if (block == BLOCK_EMPTY) {
|
||||
block = fs_par2block_find(disk, i);
|
||||
if (block == BLOCK_NULL) {
|
||||
/* use an empty block */
|
||||
memset(buffer[j], 0, state->block_size);
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue