diff options
Diffstat (limited to 'netfs/daemonSystem.cpp')
-rw-r--r-- | netfs/daemonSystem.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/netfs/daemonSystem.cpp b/netfs/daemonSystem.cpp index 9690fc4..fa9cb1d 100644 --- a/netfs/daemonSystem.cpp +++ b/netfs/daemonSystem.cpp @@ -9,11 +9,12 @@ SystemServer::SystemServer(DaemonGlobalStatePtr dgs) : } NetFSComms::VFS -SystemServer::statfs(const std::string & path, const Ice::Current&) +SystemServer::statfs(Ice::Long tok, const std::string & path, const Ice::Current&) { + SessionPtr sess(dgs->getSession(tok)); errno = 0; struct statvfs s; - if (::statvfs(path.c_str(), &s) != 0) { + if (::statvfs((sess->exportCfg->root / path).string().c_str(), &s) != 0) { throw NetFSComms::SystemError(errno); } NetFSComms::VFS t; |