Browse Source

set FUSE subtype to 'mergerfs'. closes #59

pull/62/head
Antonio SJ Musumeci 10 years ago
parent
commit
951b22b671
  1. 13
      src/option_parser.cpp

13
src/option_parser.cpp

@ -151,14 +151,20 @@ set_fsname(struct fuse_args &args,
{ {
std::string fsname; 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()); 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 mergerfs
{ {
namespace options namespace options
@ -174,6 +180,7 @@ namespace mergerfs
::option_processor); ::option_processor);
set_fsname(args,config); set_fsname(args,config);
set_subtype(args);
} }
} }
} }
Loading…
Cancel
Save