mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
fuse_getattr.cpp
This commit is contained in:
parent
819c341ec7
commit
83eb2d1740
1 changed files with 8 additions and 4 deletions
|
|
@ -108,10 +108,14 @@ namespace l
|
|||
thread_local static std::unordered_map<std::string,std::string> cache;
|
||||
|
||||
auto i = cache.find(fusepath_);
|
||||
|
||||
rv = searchFunc_(branches_,fusepath_,&basepaths);
|
||||
if(rv == -1)
|
||||
return -errno;
|
||||
if(i == cache.end())
|
||||
{
|
||||
rv = searchFunc_(branches_,fusepath_,&basepaths);
|
||||
if(rv == -1)
|
||||
return -errno;
|
||||
|
||||
cache.insert({fusepath_,basepaths[0]});
|
||||
}
|
||||
|
||||
fullpath = fs::path::make(basepaths[0],fusepath_);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue