mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-19 22:46:34 -05:00
fuse_readdir.cpp
This commit is contained in:
parent
8c6e5e647a
commit
9e1dd8395d
1 changed files with 18 additions and 0 deletions
|
|
@ -99,6 +99,24 @@ _handle_ENOENT(const fuse_file_info_t *ffi_,
|
|||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
FUSE::ReadDir::opendir(const fuse_req_ctx_t *ctx_,
|
||||
const char *fusepath_,
|
||||
fuse_file_info_t *ffi_)
|
||||
{
|
||||
int rv;
|
||||
std::shared_ptr<FUSE::ReadDirBase> readdir;
|
||||
|
||||
readdir = std::atomic_load(&_impl);
|
||||
assert(readdir);
|
||||
|
||||
rv = readdir->readdir(ctx_,ffi_,buf_);
|
||||
if(rv == -ENOENT)
|
||||
return ::_handle_ENOENT(ffi_,buf_);
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
int
|
||||
FUSE::ReadDir::readdir(const fuse_req_ctx_t *ctx_,
|
||||
const fuse_file_info_t *ffi_,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue