mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
only allow manipulation of runtime settings via xattrs. closes #22
This commit is contained in:
parent
45cec2d301
commit
7b0d703f00
35 changed files with 50 additions and 419 deletions
|
|
@ -43,15 +43,6 @@ using std::vector;
|
|||
using mergerfs::FileInfo;
|
||||
using mergerfs::Policy;
|
||||
|
||||
static
|
||||
int
|
||||
_create_controlfile(uint64_t &fh)
|
||||
{
|
||||
fh = (uint64_t)new string;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static
|
||||
int
|
||||
_create(const fs::SearchFunc searchFunc,
|
||||
|
|
@ -68,7 +59,7 @@ _create(const fs::SearchFunc searchFunc,
|
|||
fs::PathVector createpath;
|
||||
fs::PathVector existingpath;
|
||||
|
||||
dirname = fs::dirname(fusepath);
|
||||
dirname = fs::dirname(fusepath);
|
||||
searchFunc(srcmounts,dirname,existingpath);
|
||||
if(existingpath.empty())
|
||||
return -ENOENT;
|
||||
|
|
@ -104,9 +95,6 @@ namespace mergerfs
|
|||
const config::Config &config = config::get();
|
||||
const ugid::SetResetGuard ugid(fc->uid,fc->gid);
|
||||
|
||||
if(fusepath == config.controlfile)
|
||||
return _create_controlfile(fileinfo->fh);
|
||||
|
||||
return _create(*config.search,
|
||||
*config.create,
|
||||
config.srcmounts,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue