diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-08-31 19:52:11 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-09-05 17:30:07 +0100 |
commit | fc6e9a3316b608b30b5a25b347774181f1730c59 (patch) | |
tree | 67c74913d0d199dc6c366de8c05bfa91e4d452bc /netfs/daemon | |
parent | Clang format all the code (diff) | |
download | netfs-fc6e9a3316b608b30b5a25b347774181f1730c59.tar.bz2 netfs-fc6e9a3316b608b30b5a25b347774181f1730c59.tar.xz netfs-fc6e9a3316b608b30b5a25b347774181f1730c59.zip |
First cut extensible mapper
Replaces the weird fallback half implementation with something that looks
remotely fit for purpose.
Diffstat (limited to 'netfs/daemon')
-rw-r--r-- | netfs/daemon/daemonVolume.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/netfs/daemon/daemonVolume.cpp b/netfs/daemon/daemonVolume.cpp index 3ae43da..7ae3a1f 100644 --- a/netfs/daemon/daemonVolume.cpp +++ b/netfs/daemon/daemonVolume.cpp @@ -7,6 +7,7 @@ #include <boost/algorithm/string/predicate.hpp> #include <cerrno> #include <climits> +#include <defaultMapper.h> #include <entCache.h> #include <fcntl.h> #include <map> @@ -16,7 +17,8 @@ extern std::map<Ice::Int, int> files; VolumeServer::VolumeServer(const std::filesystem::path & r, const EntCache<User> & u, const EntCache<Group> & g) : - root(std::filesystem::canonical(r)), userLookup(u), groupLookup(g), converter(u, g) + root(std::filesystem::canonical(r)), userLookup(u), groupLookup(g), + converter(std::make_shared<NetFS::Mapping::DefaultMapper>()) { } |