From 173e5056ef8beaa461c5a6665b75e1d97503c5ac Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Thu, 19 Nov 2026 21:14:58 +0100 Subject: go.mod: upgrade to go-fuse v3 (current master 1ffd5bd2bfc64) go-fuse master is now github.com/hanwen/go-fuse/v3. Changes needed: * Change the import path, also in build.bash and version.go, which look up the go-fuse module version. * fuse.Context is gone, and fuse.FromContext() now returns a fuse.Caller value. Caller has the same Owner and Pid fields, so use *fuse.Caller in place of *fuse.Context. * fuse.Status is replaced by syscall.Errno, so ReadResult.Bytes() returns an Errno now. Co-Authored-By: Claude Opus 5.5 --- internal/fusefrontend_reverse/file.go | 4 ++-- internal/fusefrontend_reverse/file_api_check.go | 2 +- internal/fusefrontend_reverse/node.go | 4 ++-- internal/fusefrontend_reverse/node_api_check.go | 2 +- internal/fusefrontend_reverse/node_dir_ops.go | 4 ++-- internal/fusefrontend_reverse/node_helpers.go | 4 ++-- internal/fusefrontend_reverse/node_xattr_darwin.go | 2 +- internal/fusefrontend_reverse/node_xattr_linux.go | 2 +- internal/fusefrontend_reverse/root_node.go | 4 ++-- internal/fusefrontend_reverse/virtualconf.go | 4 ++-- internal/fusefrontend_reverse/virtualnode.go | 4 ++-- 11 files changed, 18 insertions(+), 18 deletions(-) (limited to 'internal/fusefrontend_reverse') diff --git a/internal/fusefrontend_reverse/file.go b/internal/fusefrontend_reverse/file.go index bc917ac..02d8b1a 100644 --- a/internal/fusefrontend_reverse/file.go +++ b/internal/fusefrontend_reverse/file.go @@ -6,8 +6,8 @@ import ( "os" "syscall" - "github.com/hanwen/go-fuse/v2/fs" - "github.com/hanwen/go-fuse/v2/fuse" + "github.com/hanwen/go-fuse/v3/fs" + "github.com/hanwen/go-fuse/v3/fuse" "github.com/rfjakob/gocryptfs/v2/internal/contentenc" ) diff --git a/internal/fusefrontend_reverse/file_api_check.go b/internal/fusefrontend_reverse/file_api_check.go index b7e59d4..3c02021 100644 --- a/internal/fusefrontend_reverse/file_api_check.go +++ b/internal/fusefrontend_reverse/file_api_check.go @@ -1,7 +1,7 @@ package fusefrontend_reverse import ( - "github.com/hanwen/go-fuse/v2/fs" + "github.com/hanwen/go-fuse/v3/fs" ) // Check that we have implemented the fs.File* interfaces diff --git a/internal/fusefrontend_reverse/node.go b/internal/fusefrontend_reverse/node.go index 30654e0..45050be 100644 --- a/internal/fusefrontend_reverse/node.go +++ b/internal/fusefrontend_reverse/node.go @@ -9,8 +9,8 @@ import ( "golang.org/x/sys/unix" - "github.com/hanwen/go-fuse/v2/fs" - "github.com/hanwen/go-fuse/v2/fuse" + "github.com/hanwen/go-fuse/v3/fs" + "github.com/hanwen/go-fuse/v3/fuse" "github.com/rfjakob/gocryptfs/v2/internal/contentenc" "github.com/rfjakob/gocryptfs/v2/internal/pathiv" diff --git a/internal/fusefrontend_reverse/node_api_check.go b/internal/fusefrontend_reverse/node_api_check.go index eb608f9..6eb318a 100644 --- a/internal/fusefrontend_reverse/node_api_check.go +++ b/internal/fusefrontend_reverse/node_api_check.go @@ -1,7 +1,7 @@ package fusefrontend_reverse import ( - "github.com/hanwen/go-fuse/v2/fs" + "github.com/hanwen/go-fuse/v3/fs" ) // Check that we have implemented the fs.Node* interfaces diff --git a/internal/fusefrontend_reverse/node_dir_ops.go b/internal/fusefrontend_reverse/node_dir_ops.go index fdd15ce..eec188f 100644 --- a/internal/fusefrontend_reverse/node_dir_ops.go +++ b/internal/fusefrontend_reverse/node_dir_ops.go @@ -7,8 +7,8 @@ import ( "golang.org/x/sys/unix" - "github.com/hanwen/go-fuse/v2/fs" - "github.com/hanwen/go-fuse/v2/fuse" + "github.com/hanwen/go-fuse/v3/fs" + "github.com/hanwen/go-fuse/v3/fuse" "github.com/rfjakob/gocryptfs/v2/internal/configfile" "github.com/rfjakob/gocryptfs/v2/internal/cryptocore" diff --git a/internal/fusefrontend_reverse/node_helpers.go b/internal/fusefrontend_reverse/node_helpers.go index 8a15689..577693e 100644 --- a/internal/fusefrontend_reverse/node_helpers.go +++ b/internal/fusefrontend_reverse/node_helpers.go @@ -8,8 +8,8 @@ import ( "golang.org/x/sys/unix" - "github.com/hanwen/go-fuse/v2/fs" - "github.com/hanwen/go-fuse/v2/fuse" + "github.com/hanwen/go-fuse/v3/fs" + "github.com/hanwen/go-fuse/v3/fuse" "github.com/rfjakob/gocryptfs/v2/internal/pathiv" "github.com/rfjakob/gocryptfs/v2/internal/syscallcompat" diff --git a/internal/fusefrontend_reverse/node_xattr_darwin.go b/internal/fusefrontend_reverse/node_xattr_darwin.go index 6816a18..73bb4d5 100644 --- a/internal/fusefrontend_reverse/node_xattr_darwin.go +++ b/internal/fusefrontend_reverse/node_xattr_darwin.go @@ -3,7 +3,7 @@ package fusefrontend_reverse import ( "syscall" - "github.com/hanwen/go-fuse/v2/fs" + "github.com/hanwen/go-fuse/v3/fs" "github.com/rfjakob/gocryptfs/v2/internal/syscallcompat" ) diff --git a/internal/fusefrontend_reverse/node_xattr_linux.go b/internal/fusefrontend_reverse/node_xattr_linux.go index 3c574f5..2ebb213 100644 --- a/internal/fusefrontend_reverse/node_xattr_linux.go +++ b/internal/fusefrontend_reverse/node_xattr_linux.go @@ -4,7 +4,7 @@ import ( "fmt" "syscall" - "github.com/hanwen/go-fuse/v2/fs" + "github.com/hanwen/go-fuse/v3/fs" "github.com/rfjakob/gocryptfs/v2/internal/syscallcompat" ) diff --git a/internal/fusefrontend_reverse/root_node.go b/internal/fusefrontend_reverse/root_node.go index 461b25c..ea69fdc 100644 --- a/internal/fusefrontend_reverse/root_node.go +++ b/internal/fusefrontend_reverse/root_node.go @@ -10,8 +10,8 @@ import ( "golang.org/x/sys/unix" - "github.com/hanwen/go-fuse/v2/fs" - "github.com/hanwen/go-fuse/v2/fuse" + "github.com/hanwen/go-fuse/v3/fs" + "github.com/hanwen/go-fuse/v3/fuse" "github.com/rfjakob/gocryptfs/v2/internal/configfile" "github.com/rfjakob/gocryptfs/v2/internal/contentenc" diff --git a/internal/fusefrontend_reverse/virtualconf.go b/internal/fusefrontend_reverse/virtualconf.go index 6780974..9643602 100644 --- a/internal/fusefrontend_reverse/virtualconf.go +++ b/internal/fusefrontend_reverse/virtualconf.go @@ -5,8 +5,8 @@ import ( "sync" "syscall" - "github.com/hanwen/go-fuse/v2/fs" - "github.com/hanwen/go-fuse/v2/fuse" + "github.com/hanwen/go-fuse/v3/fs" + "github.com/hanwen/go-fuse/v3/fuse" "github.com/rfjakob/gocryptfs/v2/internal/configfile" "github.com/rfjakob/gocryptfs/v2/internal/syscallcompat" diff --git a/internal/fusefrontend_reverse/virtualnode.go b/internal/fusefrontend_reverse/virtualnode.go index 95e71ab..648623c 100644 --- a/internal/fusefrontend_reverse/virtualnode.go +++ b/internal/fusefrontend_reverse/virtualnode.go @@ -5,8 +5,8 @@ import ( "log" "syscall" - "github.com/hanwen/go-fuse/v2/fs" - "github.com/hanwen/go-fuse/v2/fuse" + "github.com/hanwen/go-fuse/v3/fs" + "github.com/hanwen/go-fuse/v3/fuse" "github.com/rfjakob/gocryptfs/v2/internal/configfile" "github.com/rfjakob/gocryptfs/v2/internal/inomap" -- cgit v1.2.3