add 'ignore path preserving on rename' feature

This commit is contained in:
Antonio SJ Musumeci 2017-06-29 23:57:15 -04:00
parent b95fbd76ec
commit a2bddec8c7
10 changed files with 47 additions and 6 deletions

View file

@ -301,7 +301,7 @@ namespace mergerfs
const ugid::Set ugid(fc->uid,fc->gid);
const rwlock::ReadGuard readlock(&config.srcmountslock);
if(config.create->path_preserving())
if(config.create->path_preserving() && !config.ignorepponrename)
return _rename_preserve_path(config.getattr,
config.rename,
config.create,