mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Auto-commit fuse.cpp
This commit is contained in:
parent
d5a2187713
commit
02da8efbff
37 changed files with 374 additions and 267 deletions
|
|
@ -32,6 +32,7 @@
|
|||
#include "fs_open.hpp"
|
||||
#include "fs_path.hpp"
|
||||
#include "mergerfs_ioctl.hpp"
|
||||
#include "state.hpp"
|
||||
#include "str.hpp"
|
||||
|
||||
#include <string>
|
||||
|
|
@ -115,6 +116,9 @@ _ioctl_file(const fuse_req_ctx_t *ctx_,
|
|||
{
|
||||
FileInfo *fi = FileInfo::from_fh(ffi_->fh);
|
||||
|
||||
if(not fi)
|
||||
return -EBADF;
|
||||
|
||||
return ::_ioctl(fi->fd,cmd_,data_,out_bufsz_);
|
||||
}
|
||||
|
||||
|
|
@ -163,6 +167,9 @@ _ioctl_dir(const fuse_req_ctx_t *ctx_,
|
|||
{
|
||||
DirInfo *di = DirInfo::from_fh(ffi_->fh);
|
||||
|
||||
if(not di)
|
||||
return -EBADF;
|
||||
|
||||
return ::_ioctl_dir_base(cfg.func.open.policy,
|
||||
cfg.branches,
|
||||
di->fusepath.c_str(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue