mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-22 16:06:27 -05:00
Cleanup copy functions (#1500)
This commit is contained in:
parent
e8cd74cab0
commit
33fc26f81f
12 changed files with 164 additions and 151 deletions
|
|
@ -102,7 +102,7 @@ _movefile_and_open(const Policy::Create &createFunc_,
|
|||
src_filepath = fs::path::make(src_branch,fusepath_);
|
||||
dst_filepath = fs::path::make(dst_branch[0]->path,fusepath_);
|
||||
|
||||
rv = fs::copyfile(src_filepath,dst_filepath,FS_COPYFILE_CLEANUP_FAILURE);
|
||||
rv = fs::copyfile(src_filepath,dst_filepath,{.cleanup_failure = true});
|
||||
if(rv < 0)
|
||||
return -ENOSPC;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue