mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-11-22 14:54:38 +08:00
fuse_open.cpp
This commit is contained in:
parent
28d71bb839
commit
cc4a60e65c
|
@ -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…
Reference in New Issue
Block a user