set FUSE subtype to 'mergerfs'. closes #59

This commit is contained in:
Antonio SJ Musumeci
2015-03-11 14:00:47 -04:00
parent 0a0e8fdefc
commit 951b22b671
+10 -3
View File
@@ -151,14 +151,20 @@ set_fsname(struct fuse_args &args,
{
std::string fsname;
fsname =
"-ofsname=" +
str::remove_common_prefix_and_join(config.srcmounts,':');
fsname = str::remove_common_prefix_and_join(config.srcmounts,':');
fsname = "-ofsname=" + fsname;
fuse_opt_insert_arg(&args,1,fsname.c_str());
}
}
static
void
set_subtype(struct fuse_args &args)
{
fuse_opt_insert_arg(&args,1,"-osubtype=mergerfs");
}
namespace mergerfs
{
namespace options
@@ -174,6 +180,7 @@ namespace mergerfs
::option_processor);
set_fsname(args,config);
set_subtype(args);
}
}
}