mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-25 09:26:27 -05:00
Fixes a bug in check when detecting garbage data over the expected end of a file.
More extensive tests to detect the append/truncate conditions.
This commit is contained in:
parent
5baef32fb9
commit
a9255683f4
8 changed files with 204 additions and 42 deletions
1
elem.c
1
elem.c
|
|
@ -224,6 +224,7 @@ struct snapraid_file* file_alloc(unsigned block_size, const char* sub, uint64_t
|
|||
file->inode = inode;
|
||||
file->is_present = 0;
|
||||
file->is_excluded = 0;
|
||||
file->is_larger = 0;
|
||||
file->blockvec = malloc_nofail(file->blockmax * sizeof(struct snapraid_block));
|
||||
|
||||
/* set the back pointer */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue