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

View file

@ -37,6 +37,7 @@ int handle_close_if_different(struct snapraid_handle* handle, struct snapraid_fi
/**
* Creates a file.
* The file is created if missing, and opening with write access.
* If the file is larger than expected, the value 1 is returned, and the file is truncated to the correct size.
*/
int handle_create(struct snapraid_handle* handle, struct snapraid_file* file);