mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-30 20:06:56 -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
handle.h
1
handle.h
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue