From e06c671de89d0855a4b42612bdf511e9c418edf4 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Mon, 8 Apr 2024 18:51:24 -0500 Subject: [PATCH] fuse_create.cpp --- src/fuse_create.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/fuse_create.cpp b/src/fuse_create.cpp index 8a3a8592..019c17a8 100644 --- a/src/fuse_create.cpp +++ b/src/fuse_create.cpp @@ -272,10 +272,15 @@ namespace FUSE if(rv != 0) return rv; + switch(+cfg->passthrough) { + case PassthroughEnum::off: + return rv; + case PassthroughEnum::ro: + case PassthroughEnum::wo: + case PassthroughEnum::rw: + return l::passthrough(fc,ffi_); } - - return l::passthrough(fc,ffi_); } }