mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
func_create_ff.cpp
This commit is contained in:
parent
789821bbac
commit
17b471ba8b
1 changed files with 5 additions and 0 deletions
|
|
@ -56,6 +56,11 @@ namespace l
|
|||
mode_ &= ~umask_;
|
||||
|
||||
rv = fs::open(fullpath,ffi_->flags,mode_);
|
||||
if((rv == -1) && (errno == ENOENT))
|
||||
{
|
||||
branches_->clonepath(branch.path,fusepath_);
|
||||
rv = fs::open(fullpath,ffi_->flags,mode_);
|
||||
}
|
||||
if((rv == -1) && (errno == EROFS))
|
||||
{
|
||||
branch.mode = Branch2::Mode::RO;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue