add statfs cache

This commit is contained in:
Antonio SJ Musumeci 2018-12-12 10:08:17 -05:00
parent f42bd8666e
commit 5be7e007ce
22 changed files with 303 additions and 95 deletions

View file

@ -58,7 +58,8 @@ namespace mergerfs
const Config &config = Config::get();
FileInfo *fi = reinterpret_cast<FileInfo*>(ffi_->fh);
config.open_cache.cleanup(10);
if(config.open_cache.timeout)
config.open_cache.cleanup(10);
return local::release(fi,config.dropcacheonclose);
}