diff options
| author | Jakob Unterwurzacher | 2026-11-19 21:14:58 +0100 |
|---|---|---|
| committer | Jakob Unterwurzacher | 2026-11-19 21:25:56 +0100 |
| commit | 173e5056ef8beaa461c5a6665b75e1d97503c5ac (patch) | |
| tree | bfff9a1b18a97bac7ee8b6c4f05d2d9b9fd2cc58 /internal/syscallcompat/asuser.go | |
| parent | 52c4864d849cbbb76d49d1a908025b77c7246bda (diff) | |
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 <noreply@anthropic.com>
Diffstat (limited to 'internal/syscallcompat/asuser.go')
| -rw-r--r-- | internal/syscallcompat/asuser.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/syscallcompat/asuser.go b/internal/syscallcompat/asuser.go index 0c083ec..e924587 100644 --- a/internal/syscallcompat/asuser.go +++ b/internal/syscallcompat/asuser.go @@ -3,7 +3,7 @@ package syscallcompat import ( "golang.org/x/sys/unix" - "github.com/hanwen/go-fuse/v2/fuse" + "github.com/hanwen/go-fuse/v3/fuse" ) // OpenatUser runs the Openat syscall in the context of a different user. @@ -12,7 +12,7 @@ import ( // // If `context` is nil, this function behaves like ordinary Openat (no // user switching). -func OpenatUser(dirfd int, path string, flags int, mode uint32, context *fuse.Context) (fd int, err error) { +func OpenatUser(dirfd int, path string, flags int, mode uint32, context *fuse.Caller) (fd int, err error) { f := func() (int, error) { return Openat(dirfd, path, flags, mode) } @@ -23,7 +23,7 @@ func OpenatUser(dirfd int, path string, flags int, mode uint32, context *fuse.Co // If `context` is nil, this function behaves like ordinary Mknodat. // // See OpenatUser() for how this works. -func MknodatUser(dirfd int, path string, mode uint32, dev int, context *fuse.Context) (err error) { +func MknodatUser(dirfd int, path string, mode uint32, dev int, context *fuse.Caller) (err error) { f := func() (int, error) { err := Mknodat(dirfd, path, mode, dev) return -1, err @@ -36,7 +36,7 @@ func MknodatUser(dirfd int, path string, mode uint32, dev int, context *fuse.Con // If `context` is nil, this function behaves like ordinary Symlinkat. // // See OpenatUser() for how this works. -func SymlinkatUser(oldpath string, newdirfd int, newpath string, context *fuse.Context) (err error) { +func SymlinkatUser(oldpath string, newdirfd int, newpath string, context *fuse.Caller) (err error) { f := func() (int, error) { err := unix.Symlinkat(oldpath, newdirfd, newpath) return -1, err @@ -49,7 +49,7 @@ func SymlinkatUser(oldpath string, newdirfd int, newpath string, context *fuse.C // If `context` is nil, this function behaves like ordinary Mkdirat. // // See OpenatUser() for how this works. -func MkdiratUser(dirfd int, path string, mode uint32, context *fuse.Context) (err error) { +func MkdiratUser(dirfd int, path string, mode uint32, context *fuse.Caller) (err error) { f := func() (int, error) { err := unix.Mkdirat(dirfd, path, mode) return -1, err |
