From b2a13ed87d102caf87aef1cf9f9486f399aba8f7 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 6 Jan 2019 16:48:16 +0000 Subject: Read ICE communicator args from options Not just command line args, doesn't work when passed in -oargs, like from fstab --- netfs/fuse/fuseApp.cpp | 5 +++-- netfs/fuse/fuseApp.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/netfs/fuse/fuseApp.cpp b/netfs/fuse/fuseApp.cpp index d4835b9..6064e67 100644 --- a/netfs/fuse/fuseApp.cpp +++ b/netfs/fuse/fuseApp.cpp @@ -15,7 +15,7 @@ namespace AdHoc { } NetFS::FuseApp::FuseApp(const Ice::StringSeq & a) : - args(a), + iceArgs(a), sessionOpened(false), openHandleId(0), converter(userLookup, groupLookup) @@ -75,7 +75,7 @@ NetFS::FuseApp::ReadConfiguration(const boost::filesystem::path & path) const void * NetFS::FuseApp::init(struct fuse_conn_info *) { - ic = Ice::initialize(args); + ic = Ice::initialize(iceArgs); fcr = configurator(); return NULL; } @@ -105,6 +105,7 @@ int NetFS::FuseApp::opt_parse(void *, const char * arg, int, struct fuse_args *) { if (strncmp(arg, "--Ice.", 6) == 0) { + iceArgs.push_back(arg); return 0; } else if (strncmp(arg, "_netdev", 7) == 0) { diff --git a/netfs/fuse/fuseApp.h b/netfs/fuse/fuseApp.h index 9653a55..f37acb7 100644 --- a/netfs/fuse/fuseApp.h +++ b/netfs/fuse/fuseApp.h @@ -121,7 +121,7 @@ namespace NetFS { ReqEnv reqEnv(); - Ice::StringSeq args; + Ice::StringSeq iceArgs; Ice::CommunicatorPtr ic; Client::ResourcePtr fcr; mutable std::shared_mutex _proxymaplock; -- cgit v1.2.3