Browse Source

fuse_create.cpp

passthrough
Antonio SJ Musumeci 7 months ago
parent
commit
bb6a0e30d1
  1. 8
      src/fuse_create.cpp

8
src/fuse_create.cpp

@ -58,6 +58,13 @@ namespace l
return ((flags_ & O_ACCMODE) == O_RDONLY); return ((flags_ & O_ACCMODE) == O_RDONLY);
} }
static
bool
wronly(const int flags_)
{
return ((flags_ & O_ACCMODE) == O_WRONLY);
}
static static
bool bool
calculate_flush(FlushOnClose const flushonclose_, calculate_flush(FlushOnClose const flushonclose_,
@ -278,6 +285,7 @@ namespace FUSE
case PassthroughEnum::off: case PassthroughEnum::off:
return rv; return rv;
case PassthroughEnum::ro: case PassthroughEnum::ro:
if(ffi_->flags & O_
case PassthroughEnum::wo: case PassthroughEnum::wo:
case PassthroughEnum::rw: case PassthroughEnum::rw:
return l::passthrough(fc,ffi_); return l::passthrough(fc,ffi_);

Loading…
Cancel
Save