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:
Andrea Mazzoleni 2011-04-28 21:38:25 +02:00
parent 5baef32fb9
commit a9255683f4
8 changed files with 204 additions and 42 deletions

1
elem.c
View file

@ -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 */