mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-02-02 03:16:14 +08:00
func_create_ff.cpp
This commit is contained in:
parent
e7746075fa
commit
f7e91539ce
|
@ -31,10 +31,12 @@ namespace l
|
||||||
fuse_file_info_t *ffi_)
|
fuse_file_info_t *ffi_)
|
||||||
{
|
{
|
||||||
int rv;
|
int rv;
|
||||||
|
mode_t mode;
|
||||||
FileInfo *fi;
|
FileInfo *fi;
|
||||||
fs::info_t info;
|
fs::info_t info;
|
||||||
ghc::filesystem::path fullpath;
|
ghc::filesystem::path fullpath;
|
||||||
|
|
||||||
|
mode = mode_;
|
||||||
for(auto &tier : branches_)
|
for(auto &tier : branches_)
|
||||||
{
|
{
|
||||||
for(auto &branch : tier)
|
for(auto &branch : tier)
|
||||||
|
@ -51,8 +53,8 @@ namespace l
|
||||||
|
|
||||||
fullpath = branch.path / fusepath_;
|
fullpath = branch.path / fusepath_;
|
||||||
|
|
||||||
// if(!fs::acl::dir_has_defaults(fullpath))
|
if(!fs::acl::dir_has_defaults(fullpath))
|
||||||
// mode_ &= ~umask_;
|
mode_ &= ~umask_;
|
||||||
|
|
||||||
rv = fs::open(fullpath,ffi_->flags,mode_);
|
rv = fs::open(fullpath,ffi_->flags,mode_);
|
||||||
if((rv == -1) && (errno == ENOENT))
|
if((rv == -1) && (errno == ENOENT))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user