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
|
|
@ -30,7 +30,6 @@
|
|||
#include <sys/ioctl.h>
|
||||
#include <linux/fs.h>
|
||||
|
||||
#include "config.hpp"
|
||||
#include "fileinfo.hpp"
|
||||
|
||||
static
|
||||
|
|
@ -81,15 +80,11 @@ namespace mergerfs
|
|||
ioctl(const char *fusepath,
|
||||
int cmd,
|
||||
void *arg,
|
||||
struct fuse_file_info *fi,
|
||||
struct fuse_file_info *ffi,
|
||||
unsigned int flags,
|
||||
void *data)
|
||||
{
|
||||
const config::Config &config = config::get();
|
||||
const FileInfo *fileinfo = (FileInfo*)fi->fh;
|
||||
|
||||
if(fusepath == config.controlfile)
|
||||
return -EINVAL;
|
||||
const FileInfo *fileinfo = (FileInfo*)ffi->fh;
|
||||
|
||||
return _ioctl(fileinfo->fd,
|
||||
cmd,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue