mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-01 20:36:38 -05:00
Avoid redundant block initialization when loading content files
This commit is contained in:
parent
bc564e7465
commit
b14f703d2b
4 changed files with 22 additions and 10 deletions
|
|
@ -883,7 +883,7 @@ static inline void file_flag_clear(struct snapraid_file* file, unsigned mask)
|
|||
}
|
||||
|
||||
/**
|
||||
* Allocate a file.
|
||||
* Allocate a file without initializing its blocks.
|
||||
*/
|
||||
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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue