mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-02-02 01:25:00 +08:00
Merge pull request #62 from trapexit/subtype
set FUSE subtype to 'mergerfs'. closes #59
This commit is contained in:
commit
3725387132
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user