mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-03 13:20:28 -05:00
Reject parity sizes exceeding data_off_t range and remove redundant block size casts
This commit is contained in:
parent
149b408c38
commit
bcc06e10c6
6 changed files with 14 additions and 9 deletions
|
|
@ -2950,7 +2950,7 @@ static void state_read_content(struct snapraid_state* state, const char* path, S
|
|||
* Allocate without initializing blocks. This deleted run sets every
|
||||
* state and hash before the file is inserted in the extent map.
|
||||
*/
|
||||
deleted = file_alloc(state->block_size, "<deleted>", v_count * (data_off_t)state->block_size, 0, 0, 0);
|
||||
deleted = file_alloc(state->block_size, "<deleted>", v_count * state->block_size, 0, 0, 0);
|
||||
|
||||
/* mark the file as deleted */
|
||||
file_flag_set(deleted, FILE_IS_DELETED);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue