mergerfs/src/fuse_passthrough.hpp
trapexit e310d24615
Some checks are pending
CodeQL / Analyze (push) Waiting to run
mkdocs / deploy (push) Waiting to run
Add support for FUSE passthrough
2025-06-05 23:47:42 -05:00

30 lines
485 B
C++

#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_);
}
}