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
6d927bc642
commit
496ca26193
1 changed files with 11 additions and 2 deletions
|
|
@ -287,9 +287,18 @@ namespace FUSE
|
|||
cfg->link_cow,
|
||||
cfg->nfsopenhack);
|
||||
|
||||
if((rv != 0) || (cfg->passthrough == false))
|
||||
if(rv != 0)
|
||||
return rv;
|
||||
|
||||
return l::passthrough(fc,ffi_);
|
||||
uint64_t x = combine(cfg->passthrough,ffi_->flags);
|
||||
switch(x)
|
||||
{
|
||||
case combine(PassthroughEnum::ro,O_RDONLY):
|
||||
case combine(PassthroughEnum::wo,O_WRONLY):
|
||||
case combine(PassthroughEnum::rw,O_RDWR):
|
||||
return l::passthrough(fc,ffi_);
|
||||
}
|
||||
|
||||
return rv;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue