mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-04 05:40:14 -05:00
Restores the modification time of files in fixing.
This commit is contained in:
parent
e6b02b7d2d
commit
66e9c359fd
15 changed files with 226 additions and 67 deletions
10
handle.h
10
handle.h
|
|
@ -34,11 +34,6 @@ struct snapraid_handle {
|
|||
*/
|
||||
int handle_ancestor(const char* file);
|
||||
|
||||
/**
|
||||
* Closes a file, if it's different from the specified one.
|
||||
*/
|
||||
int handle_close_if_different(struct snapraid_handle* handle, struct snapraid_file* file);
|
||||
|
||||
/**
|
||||
* Creates a file.
|
||||
* The file is created if missing, and opened with write access.
|
||||
|
|
@ -72,5 +67,10 @@ int handle_read(struct snapraid_handle* handle, struct snapraid_block* block, un
|
|||
*/
|
||||
int handle_write(struct snapraid_handle* handle, struct snapraid_block* block, unsigned char* block_buffer, unsigned block_size);
|
||||
|
||||
/**
|
||||
* Changes the modification time of the file to the saved value.
|
||||
*/
|
||||
int handle_utime(struct snapraid_handle* handle);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue