In Windows ensures to use synced information for new files.

Keeps track of the sync state of info with a new st_sync field
in the stat struct.
This commit is contained in:
Andrea Mazzoleni 2014-10-04 10:27:23 +02:00
parent a0c6965959
commit ca5e635aa1
6 changed files with 108 additions and 29 deletions

View file

@ -643,7 +643,7 @@ static inline void file_flag_clear(struct snapraid_file* file, unsigned mask)
/**
* Allocates a file.
*/
struct snapraid_file* file_alloc(unsigned block_size, const char* sub, uint64_t size, uint64_t mtime_sec, int mtime_nsec, uint64_t inode, uint64_t physical);
struct snapraid_file* file_alloc(unsigned block_size, const char* sub, data_off_t size, uint64_t mtime_sec, int mtime_nsec, uint64_t inode, uint64_t physical);
/**
* Deallocates a file.