mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Fixes the file name printed in checking.
This commit is contained in:
parent
bfe87614d5
commit
6b6895f8e5
1 changed files with 4 additions and 2 deletions
6
check.c
6
check.c
|
|
@ -317,8 +317,10 @@ static int state_check_process(struct snapraid_state* state, int fix, int parity
|
|||
}
|
||||
|
||||
/* check if it's a larger file, but not if already notified */
|
||||
if (!file_flag_has(block_file_get(block), FILE_IS_LARGER) && handle[j].st.st_size > block_file_get(block)->size) {
|
||||
fprintf(stderr, "File '%s' is larger than expected.\n", handle->path);
|
||||
if (!file_flag_has(block_file_get(block), FILE_IS_LARGER)
|
||||
&& handle[j].st.st_size > block_file_get(block)->size
|
||||
) {
|
||||
fprintf(stderr, "File '%s' is larger than expected.\n", handle[j].path);
|
||||
|
||||
/* if fragmented, it may be reopened, so store the notification */
|
||||
file_flag_set(block_file_get(block), FILE_IS_LARGER);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue