func_create_ff.cpp

This commit is contained in:
Antonio SJ Musumeci 2024-02-04 22:12:20 -06:00
parent 789821bbac
commit 17b471ba8b

View File

@ -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;