Restores the modification time of files in fixing.

This commit is contained in:
Andrea Mazzoleni 2011-08-31 23:33:43 +02:00
parent e6b02b7d2d
commit 66e9c359fd
15 changed files with 226 additions and 67 deletions

View file

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