mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
add clonepath tool
This commit is contained in:
parent
031b87f674
commit
d1f3bd82e8
4 changed files with 130 additions and 15 deletions
|
|
@ -33,6 +33,8 @@
|
|||
#include "resources.hpp"
|
||||
#include "fs.hpp"
|
||||
|
||||
#include "clonepath.hpp"
|
||||
|
||||
#include "access.hpp"
|
||||
#include "chmod.hpp"
|
||||
#include "chown.hpp"
|
||||
|
|
@ -73,6 +75,14 @@
|
|||
|
||||
namespace local
|
||||
{
|
||||
static
|
||||
std::string
|
||||
getappname(const int argc,
|
||||
char * const *argv)
|
||||
{
|
||||
return fs::basename(argv[0]);
|
||||
}
|
||||
|
||||
static
|
||||
void
|
||||
get_fuse_operations(struct fuse_operations &ops)
|
||||
|
|
@ -179,9 +189,11 @@ int
|
|||
main(int argc,
|
||||
char **argv)
|
||||
{
|
||||
int rv;
|
||||
std::string appname;
|
||||
|
||||
rv = mergerfs::main(argc,argv);
|
||||
appname = local::getappname(argc,argv);
|
||||
if(appname == "clonepath")
|
||||
return clonepath::main(argc,argv);
|
||||
|
||||
return rv;
|
||||
return mergerfs::main(argc,argv);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue