|
@ -108,11 +108,15 @@ namespace l |
|
|
thread_local static std::unordered_map<std::string,std::string> cache; |
|
|
thread_local static std::unordered_map<std::string,std::string> cache; |
|
|
|
|
|
|
|
|
auto i = cache.find(fusepath_); |
|
|
auto i = cache.find(fusepath_); |
|
|
|
|
|
|
|
|
|
|
|
if(i == cache.end()) |
|
|
|
|
|
{ |
|
|
rv = searchFunc_(branches_,fusepath_,&basepaths); |
|
|
rv = searchFunc_(branches_,fusepath_,&basepaths); |
|
|
if(rv == -1) |
|
|
if(rv == -1) |
|
|
return -errno; |
|
|
return -errno; |
|
|
|
|
|
|
|
|
|
|
|
cache.insert({fusepath_,basepaths[0]}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
fullpath = fs::path::make(basepaths[0],fusepath_); |
|
|
fullpath = fs::path::make(basepaths[0],fusepath_); |
|
|
|
|
|
|
|
|
switch(followsymlinks_) |
|
|
switch(followsymlinks_) |
|
|