mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Create functions can set branches RO on EROFS
This commit is contained in:
parent
36a4b7a23a
commit
707d298d7c
14 changed files with 230 additions and 56 deletions
|
|
@ -117,9 +117,8 @@ namespace l
|
|||
|
||||
dstfd_filepath = dstfd_branch[0];
|
||||
fs::path::append(dstfd_filepath,fusepath_);
|
||||
dstfd_tmp_filepath = dstfd_filepath;
|
||||
dstfd = fs::mktemp(&dstfd_tmp_filepath,O_WRONLY);
|
||||
if(dstfd == -1)
|
||||
std::tie(dstfd,dstfd_tmp_filepath) = fs::mktemp(dstfd_filepath,O_WRONLY);
|
||||
if(dstfd < 0)
|
||||
{
|
||||
fs::close(srcfd);
|
||||
return -ENOSPC;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue