fuse_open.cpp

This commit is contained in:
Antonio SJ Musumeci 2024-04-13 08:53:51 -05:00
parent 28d71bb839
commit cc4a60e65c

View File

@ -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;
}