aboutsummaryrefslogtreecommitdiff
path: root/internal/fusefrontend/node_helpers.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/fusefrontend/node_helpers.go')
-rw-r--r--internal/fusefrontend/node_helpers.go14
1 files changed, 6 insertions, 8 deletions
diff --git a/internal/fusefrontend/node_helpers.go b/internal/fusefrontend/node_helpers.go
index 3102275..43a8220 100644
--- a/internal/fusefrontend/node_helpers.go
+++ b/internal/fusefrontend/node_helpers.go
@@ -4,25 +4,23 @@ import (
"context"
"syscall"
- "github.com/hanwen/go-fuse/v2/fs"
+ "github.com/hanwen/go-fuse/v3/fs"
- "github.com/hanwen/go-fuse/v2/fuse"
+ "github.com/hanwen/go-fuse/v3/fuse"
"github.com/rfjakob/gocryptfs/v2/internal/syscallcompat"
"github.com/rfjakob/gocryptfs/v2/internal/tlog"
)
-// toFuseCtx tries to extract a fuse.Context from a generic context.Context.
-func toFuseCtx(ctx context.Context) (ctx2 *fuse.Context) {
+// toFuseCtx tries to extract a fuse.Caller from a generic context.Context.
+func toFuseCtx(ctx context.Context) *fuse.Caller {
if ctx == nil {
return nil
}
if caller, ok := fuse.FromContext(ctx); ok {
- ctx2 = &fuse.Context{
- Caller: *caller,
- }
+ return &caller
}
- return ctx2
+ return nil
}
// toNode casts a generic fs.InodeEmbedder into *Node. Also handles *RootNode