Skip to content

Commit

Permalink
Update go-fuse import path to github.com/hanwen/go-fuse/v2
Browse files Browse the repository at this point in the history
We need
hanwen/go-fuse@fd7328f
to fix a crash reported in #430 :

  2019/10/30 17:14:16 Unknown opcode 2016
  panic: runtime error: invalid memory address or nil pointer dereference
  [signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x508d38]

This patch is only in the v2.x.x branch. Upgrade to v2, as the
old API is also supported there.

Running

  git grep hanwen/go-fuse | grep -v hanwen/go-fuse/v2

to check for forgotten references comes back clean.
  • Loading branch information
rfjakob committed May 17, 2020
1 parent ead7008 commit ec74d1d
Show file tree
Hide file tree
Showing 24 changed files with 36 additions and 35 deletions.
2 changes: 1 addition & 1 deletion build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ if [[ -d vendor/github.com/hanwen/go-fuse ]] ; then
else
# go-fuse version according to Go Modules
FAIL=0
OUT=$(go list -m github.com/hanwen/go-fuse | cut -d' ' -f2) || FAIL=1
OUT=$(go list -m github.com/hanwen/go-fuse/v2 | cut -d' ' -f2) || FAIL=1
if [[ $FAIL -eq 0 ]]; then
GITVERSIONFUSE=$OUT
else
Expand Down
3 changes: 2 additions & 1 deletion cli_args.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import (
"strings"
"time"

"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/v2/fuse"

"github.com/rfjakob/gocryptfs/internal/configfile"
"github.com/rfjakob/gocryptfs/internal/exitcodes"
"github.com/rfjakob/gocryptfs/internal/stupidgcm"
Expand Down
4 changes: 2 additions & 2 deletions fsck.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"sync"
"syscall"

"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/fuse/nodefs"
"github.com/hanwen/go-fuse/v2/fuse"
"github.com/hanwen/go-fuse/v2/fuse/nodefs"

"github.com/rfjakob/gocryptfs/internal/exitcodes"
"github.com/rfjakob/gocryptfs/internal/fusefrontend"
Expand Down
2 changes: 1 addition & 1 deletion internal/contentenc/content.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"runtime"
"sync"

"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/v2/fuse"

"github.com/rfjakob/gocryptfs/internal/cryptocore"
"github.com/rfjakob/gocryptfs/internal/stupidgcm"
Expand Down
2 changes: 1 addition & 1 deletion internal/fusefrontend/args.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package fusefrontend

import (
"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/v2/fuse"
)

// Args is a container for arguments that are passed from main() to fusefrontend
Expand Down
4 changes: 2 additions & 2 deletions internal/fusefrontend/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"syscall"
"time"

"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/fuse/nodefs"
"github.com/hanwen/go-fuse/v2/fuse"
"github.com/hanwen/go-fuse/v2/fuse/nodefs"

"github.com/rfjakob/gocryptfs/internal/contentenc"
"github.com/rfjakob/gocryptfs/internal/inomap"
Expand Down
2 changes: 1 addition & 1 deletion internal/fusefrontend/file_allocate_truncate.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"sync"
"syscall"

"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/v2/fuse"

"github.com/rfjakob/gocryptfs/internal/syscallcompat"
"github.com/rfjakob/gocryptfs/internal/tlog"
Expand Down
2 changes: 1 addition & 1 deletion internal/fusefrontend/file_holes.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"runtime"
"syscall"

"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/v2/fuse"

"github.com/rfjakob/gocryptfs/internal/tlog"
)
Expand Down
6 changes: 3 additions & 3 deletions internal/fusefrontend/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (

"golang.org/x/sys/unix"

"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/fuse/nodefs"
"github.com/hanwen/go-fuse/fuse/pathfs"
"github.com/hanwen/go-fuse/v2/fuse"
"github.com/hanwen/go-fuse/v2/fuse/nodefs"
"github.com/hanwen/go-fuse/v2/fuse/pathfs"

"github.com/rfjakob/gocryptfs/internal/configfile"
"github.com/rfjakob/gocryptfs/internal/contentenc"
Expand Down
2 changes: 1 addition & 1 deletion internal/fusefrontend/fs_dir.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"golang.org/x/sys/unix"

"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/v2/fuse"

"github.com/rfjakob/gocryptfs/internal/configfile"
"github.com/rfjakob/gocryptfs/internal/cryptocore"
Expand Down
2 changes: 1 addition & 1 deletion internal/fusefrontend/xattr.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"syscall"

"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/v2/fuse"

"github.com/rfjakob/gocryptfs/internal/tlog"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/fusefrontend/xattr_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"golang.org/x/sys/unix"

"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/v2/fuse"

"github.com/rfjakob/gocryptfs/internal/syscallcompat"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/fusefrontend/xattr_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"golang.org/x/sys/unix"

"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/v2/fuse"

"github.com/rfjakob/gocryptfs/internal/syscallcompat"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/fusefrontend_reverse/reverse_longnames.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

"golang.org/x/sys/unix"

"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/fuse/nodefs"
"github.com/hanwen/go-fuse/v2/fuse"
"github.com/hanwen/go-fuse/v2/fuse/nodefs"

"github.com/rfjakob/gocryptfs/internal/nametransform"
"github.com/rfjakob/gocryptfs/internal/pathiv"
Expand Down
4 changes: 2 additions & 2 deletions internal/fusefrontend_reverse/rfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
// In newer Go versions, this has moved to just "sync/syncmap".
"golang.org/x/sync/syncmap"

"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/fuse/nodefs"
"github.com/hanwen/go-fuse/v2/fuse"
"github.com/hanwen/go-fuse/v2/fuse/nodefs"

"github.com/rfjakob/gocryptfs/internal/contentenc"
"github.com/rfjakob/gocryptfs/internal/pathiv"
Expand Down
6 changes: 3 additions & 3 deletions internal/fusefrontend_reverse/rfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (

"golang.org/x/sys/unix"

"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/fuse/nodefs"
"github.com/hanwen/go-fuse/fuse/pathfs"
"github.com/hanwen/go-fuse/v2/fuse"
"github.com/hanwen/go-fuse/v2/fuse/nodefs"
"github.com/hanwen/go-fuse/v2/fuse/pathfs"

"github.com/rfjakob/gocryptfs/internal/configfile"
"github.com/rfjakob/gocryptfs/internal/contentenc"
Expand Down
4 changes: 2 additions & 2 deletions internal/fusefrontend_reverse/virtualfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"golang.org/x/sys/unix"

"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/fuse/nodefs"
"github.com/hanwen/go-fuse/v2/fuse"
"github.com/hanwen/go-fuse/v2/fuse/nodefs"

"github.com/rfjakob/gocryptfs/internal/inomap"
"github.com/rfjakob/gocryptfs/internal/nametransform"
Expand Down
2 changes: 1 addition & 1 deletion internal/syscallcompat/getdents_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

"golang.org/x/sys/unix"

"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/v2/fuse"

"github.com/rfjakob/gocryptfs/internal/tlog"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/syscallcompat/getdents_other.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"golang.org/x/sys/unix"

"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/v2/fuse"
)

// emulateGetdents reads all directory entries from the open directory "fd"
Expand Down
2 changes: 1 addition & 1 deletion internal/syscallcompat/getdents_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

"golang.org/x/sys/unix"

"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/v2/fuse"
)

var emulate = false
Expand Down
2 changes: 1 addition & 1 deletion internal/syscallcompat/sys_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"golang.org/x/sys/unix"

"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/v2/fuse"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/syscallcompat/sys_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

"golang.org/x/sys/unix"

"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/v2/fuse"

"github.com/rfjakob/gocryptfs/internal/tlog"
)
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"strconv"
"strings"

"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/v2/fuse"

"github.com/rfjakob/gocryptfs/internal/configfile"
"github.com/rfjakob/gocryptfs/internal/contentenc"
Expand Down
6 changes: 3 additions & 3 deletions mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (

"golang.org/x/sys/unix"

"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/fuse/nodefs"
"github.com/hanwen/go-fuse/fuse/pathfs"
"github.com/hanwen/go-fuse/v2/fuse"
"github.com/hanwen/go-fuse/v2/fuse/nodefs"
"github.com/hanwen/go-fuse/v2/fuse/pathfs"

"github.com/rfjakob/gocryptfs/internal/configfile"
"github.com/rfjakob/gocryptfs/internal/contentenc"
Expand Down

0 comments on commit ec74d1d

Please sign in to comment.