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 --- fsck.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'fsck.go') diff --git a/fsck.go b/fsck.go index 7f25269..406df24 100644 --- a/fsck.go +++ b/fsck.go @@ -12,8 +12,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/exitcodes" "github.com/rfjakob/gocryptfs/v2/internal/fusefrontend" @@ -183,10 +183,10 @@ func (ck *fsckObj) file(inode *fs.Inode, relPath string, attr *fuse.Attr) { fmt.Printf("fsck: error reading file %q (inum %d): %v\n", relPath, attr.Ino, errno) return } - data, status := res.Bytes(buf) - if !status.Ok() { + data, errno := res.Bytes(buf) + if errno != 0 { ck.markCorrupt(relPath) - fmt.Printf("fsck: error reading file %q (inum %d): %v\n", relPath, attr.Ino, status) + fmt.Printf("fsck: error reading file %q (inum %d): %v\n", relPath, attr.Ino, errno) return } // Short read means EOF -- cgit v1.2.3