remove longest common prefix from fsname. closes #38

This commit is contained in:
Antonio SJ Musumeci 2015-01-22 16:30:12 -05:00
parent 90b0fcd5f5
commit 5dd072962b
3 changed files with 74 additions and 3 deletions

View file

@ -133,7 +133,9 @@ set_fsname(struct fuse_args &args,
{
std::string fsname;
fsname = "-ofsname=" + str::join(config.srcmounts,':');
fsname =
"-ofsname=" +
str::remove_common_prefix_and_join(config.srcmounts,':');
fuse_opt_insert_arg(&args,1,fsname.c_str());
}