summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2016-01-06 21:54:11 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2016-01-06 21:54:11 +0000
commit4ae46a289b08ab8ba1fc4568e658a5d38eef78fc (patch)
tree5c24a63977e16e685091e510463824d5cf109823
parentUpdate to use new AdHoc::Cache interface (diff)
downloadnetfs-1.1.5.2.tar.bz2
netfs-1.1.5.2.tar.xz
netfs-1.1.5.2.zip
Update to use new AdHoc::Cache interfacenetfs-1.1.5.2
-rw-r--r--netfs/fuse/fuseDirs.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/netfs/fuse/fuseDirs.cpp b/netfs/fuse/fuseDirs.cpp
index 17054d2..c780866 100644
--- a/netfs/fuse/fuseDirs.cpp
+++ b/netfs/fuse/fuseDirs.cpp
@@ -74,12 +74,12 @@ NetFS::FuseApp::readdir(const char * p, void * buf, fuse_fill_dir_t filler, off_
filler(buf, e.c_str(), NULL, 0);
std::string epath = path + "/" + e;
auto asga = volume->begin_getattr(reqEnv(), epath);
- statCache.add(epath,
- StatCache::Factory([asga,this]() {
+ statCache.addFactory(epath,
+ [asga,this]() {
struct stat s;
s << AttrSource { volume->end_getattr(asga), userLookup, groupLookup };
return s;
- }), time_t(NULL) + 2);
+ }, time_t(NULL) + 2);
}
return 0;
}