mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-30 11:56:33 -05:00
Suppress missing file warnings if -m is specified
This commit is contained in:
parent
a5a72f4a31
commit
adbc74f862
10 changed files with 57 additions and 16 deletions
|
|
@ -91,7 +91,7 @@ static int state_dry_process(struct snapraid_state* state, struct snapraid_parit
|
|||
}
|
||||
|
||||
/* open the file only for reading */
|
||||
ret = handle_open(&handle[j], block_file_get(block), state->file_mode, msg_error);
|
||||
ret = handle_open(&handle[j], block_file_get(block), state->file_mode, msg_error, 0);
|
||||
if (ret == -1) {
|
||||
/* LCOV_EXCL_START */
|
||||
msg_error("DANGER! Unexpected open error in a data disk, it isn't possible to dry.\n");
|
||||
|
|
@ -103,7 +103,7 @@ static int state_dry_process(struct snapraid_state* state, struct snapraid_parit
|
|||
}
|
||||
|
||||
/* read from the file */
|
||||
read_size = handle_read(&handle[j], block, buffer_aligned, state->block_size, msg_warning);
|
||||
read_size = handle_read(&handle[j], block, buffer_aligned, state->block_size, msg_warning, 0);
|
||||
if (read_size == -1) {
|
||||
msg_tag("error:%u:%s:%s: Read error at position %u\n", i, disk->name, esc(block_file_get(block)->sub), block_file_pos(block));
|
||||
++error;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue