mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-20 23:16:28 -05:00
Defer deallocation of modified files to phase 2 to prevent copy-detection races
This commit is contained in:
parent
152e089778
commit
31d9629e8a
3 changed files with 92 additions and 34 deletions
|
|
@ -437,6 +437,7 @@ struct snapraid_file* file_dup(struct snapraid_file* copy)
|
|||
file->inode = copy->inode;
|
||||
file->physical = copy->physical;
|
||||
file->flag = copy->flag;
|
||||
file->shared_flag = 0;
|
||||
file->blockvec = nalloc_nofail(file->blockmax, block_sizeof());
|
||||
|
||||
for (i = 0; i < file->blockmax; ++i) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue