From ea88a0efb8247c3617ff23223f2a3813bb73513c Mon Sep 17 00:00:00 2001 From: randomdan Date: Thu, 21 Oct 2010 00:50:00 +0000 Subject: Specify config file in device name --- netfs/fuse.cpp | 4 +++- netfs/fuse.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/netfs/fuse.cpp b/netfs/fuse.cpp index daaf788..008ba27 100644 --- a/netfs/fuse.cpp +++ b/netfs/fuse.cpp @@ -78,7 +78,9 @@ NetFS::opt_parse(void *, const char * arg, int key, struct fuse_args *) return 1; } else if (exportName.empty()) { - exportName = arg; + const char * colon = strchr(arg, ':'); + exportName = colon + 1; + configPath.assign(arg, colon); return 0; } else if (mountPoint.empty()) { diff --git a/netfs/fuse.h b/netfs/fuse.h index 707b368..ede0d2b 100644 --- a/netfs/fuse.h +++ b/netfs/fuse.h @@ -54,6 +54,7 @@ class NetFS : public FuseAppBase std::string mountPoint; std::string exportName; + std::string configPath; }; #endif -- cgit v1.2.3