mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-01 12:26:34 -05:00
Add support for FUSE passthrough
This commit is contained in:
parent
92312c8507
commit
e310d24615
412 changed files with 43707 additions and 17432 deletions
30
src/fuse_passthrough.hpp
Normal file
30
src/fuse_passthrough.hpp
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#pragma once
|
||||
|
||||
#include "ugid.hpp"
|
||||
|
||||
#include "fuse.h"
|
||||
|
||||
namespace FUSE
|
||||
{
|
||||
static
|
||||
inline
|
||||
int
|
||||
passthrough_open(const fuse_context *fc_,
|
||||
const int fd_)
|
||||
{
|
||||
const ugid::SetRootGuard _;
|
||||
|
||||
return fuse_passthrough_open(fc_,fd_);
|
||||
}
|
||||
|
||||
static
|
||||
inline
|
||||
int
|
||||
passthrough_close(const fuse_context *fc_,
|
||||
const int backing_id_)
|
||||
{
|
||||
const ugid::SetRootGuard _;
|
||||
|
||||
return fuse_passthrough_close(fc_,backing_id_);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue