Browse Source

fuse_open.cpp

passthrough2
Antonio SJ Musumeci 9 months ago
parent
commit
cc4a60e65c
  1. 5
      src/fuse_open.cpp

5
src/fuse_open.cpp

@ -319,6 +319,7 @@ namespace FUSE
if(pti->backing_id) if(pti->backing_id)
{ {
int fd; int fd;
FileInfo *fi;
std::string proc_filepath; std::string proc_filepath;
ffi_->backing_id = pti->backing_id; ffi_->backing_id = pti->backing_id;
@ -326,6 +327,10 @@ namespace FUSE
fd = fs::open(proc_filepath,ffi_->flags); fd = fs::open(proc_filepath,ffi_->flags);
if(fd == -1) if(fd == -1)
return -errno; return -errno;
fi = new FileInfo(fd,fusepath_,ffi_->direct_io);
return 0;
} }

Loading…
Cancel
Save