Browse Source

fuse_getattr.cpp

getattr-cache
Antonio SJ Musumeci 8 months ago
parent
commit
072a3a3960
  1. 12
      src/fuse_getattr.cpp

12
src/fuse_getattr.cpp

@ -141,6 +141,16 @@ namespace l
StrVec basepaths; StrVec basepaths;
static PolicyCache cache(1024*1024); static PolicyCache cache(1024*1024);
basepath = cache.find(fusepath_);
while(true)
{
}
for(int c = 0; c < 2; c++) for(int c = 0; c < 2; c++)
{ {
const char *basepath; const char *basepath;
@ -162,6 +172,8 @@ namespace l
break; break;
if((rv == -1) && (errno != ENOENT)) if((rv == -1) && (errno != ENOENT))
break; break;
} }
if(rv == -1) if(rv == -1)

Loading…
Cancel
Save