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
072a3a3960
commit
6c718f3ed9
1 changed files with 7 additions and 3 deletions
|
|
@ -139,13 +139,17 @@ namespace l
|
|||
int rv;
|
||||
std::string fullpath;
|
||||
StrVec basepaths;
|
||||
const char *basepath;
|
||||
static PolicyCache cache(1024*1024);
|
||||
|
||||
|
||||
basepath = cache.find(fusepath_);
|
||||
while(true)
|
||||
if(basepath == NULL)
|
||||
{
|
||||
|
||||
rv = searchFunc_(branches_,fusepath_,&basepaths);
|
||||
if(rv == -1)
|
||||
return -errno;
|
||||
|
||||
basepath = cache.insert(fusepath_,basepaths[0]);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue