mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
fuse_open.cpp
This commit is contained in:
parent
28d71bb839
commit
cc4a60e65c
1 changed files with 5 additions and 0 deletions
|
|
@ -319,6 +319,7 @@ namespace FUSE
|
|||
if(pti->backing_id)
|
||||
{
|
||||
int fd;
|
||||
FileInfo *fi;
|
||||
std::string proc_filepath;
|
||||
ffi_->backing_id = pti->backing_id;
|
||||
|
||||
|
|
@ -326,6 +327,10 @@ namespace FUSE
|
|||
fd = fs::open(proc_filepath,ffi_->flags);
|
||||
if(fd == -1)
|
||||
return -errno;
|
||||
|
||||
fi = new FileInfo(fd,fusepath_,ffi_->direct_io);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue