Skip to content
Permalink
Browse files

import versioned go-fuse API at v2.

  • Loading branch information...
hanwen committed Aug 2, 2019
1 parent 15e02c2 commit b8f63ec192182d93b967e4fc3e307ada1eabdf44
Showing with 14 additions and 15 deletions.
  1. +2 −2 fs/android.go
  2. +2 −2 fs/classic.go
  3. +2 −2 fs/device_test.go
  4. +2 −2 fs/fs.go
  5. +6 −7 main.go
@@ -12,8 +12,8 @@ import (
"syscall"
"time"

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

type androidNode struct {
@@ -9,8 +9,8 @@ import (
"syscall"
"time"

"github.com/hanwen/go-fuse/fs"
"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/v2/fs"
"github.com/hanwen/go-fuse/v2/fuse"
"github.com/hanwen/go-mtpfs/mtp"
)

@@ -14,8 +14,8 @@ import (
"testing"
"time"

"github.com/hanwen/go-fuse/fs"
"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/v2/fs"
"github.com/hanwen/go-fuse/v2/fuse"
"github.com/hanwen/go-mtpfs/mtp"
)

@@ -14,8 +14,8 @@ import (
"syscall"
"time"

"github.com/hanwen/go-fuse/fs"
"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/v2/fs"
"github.com/hanwen/go-fuse/v2/fuse"
"github.com/hanwen/go-mtpfs/mtp"
)

13 main.go
@@ -12,8 +12,8 @@ import (
"syscall"
"time"

fusefs "github.com/hanwen/go-fuse/fs"
"github.com/hanwen/go-fuse/fuse"
fusefs "github.com/hanwen/go-fuse/v2/fs"
"github.com/hanwen/go-fuse/v2/fuse"
"github.com/hanwen/go-mtpfs/fs"
"github.com/hanwen/go-mtpfs/mtp"
)
@@ -73,11 +73,10 @@ func main() {
AllowOther: *other,
Debug: debugs["fuse"] || debugs["fs"],
},
DefaultPermissions: true,
UID: uint32(syscall.Getuid()),
GID: uint32(syscall.Getgid()),
AttrTimeout: &sec,
EntryTimeout: &sec,
UID: uint32(syscall.Getuid()),
GID: uint32(syscall.Getgid()),
AttrTimeout: &sec,
EntryTimeout: &sec,
}
server, err := fusefs.Mount(mountpoint, root, mountOpts)
if err != nil {

0 comments on commit b8f63ec

Please sign in to comment.
You can’t perform that action at this time.