mirror of
https://github.com/rclone/rclone.git
synced 2025-12-06 00:03:32 +00:00
mount: change interface of mount commands to take VFS
This is in preparation of being able to pass options to the rc command "mount/mount"
This commit is contained in:
5
backend/cache/cache_mount_unix_test.go
vendored
5
backend/cache/cache_mount_unix_test.go
vendored
@@ -13,6 +13,8 @@ import (
|
||||
"github.com/rclone/rclone/cmd/mount"
|
||||
"github.com/rclone/rclone/cmd/mountlib"
|
||||
"github.com/rclone/rclone/fs"
|
||||
"github.com/rclone/rclone/vfs"
|
||||
"github.com/rclone/rclone/vfs/vfsflags"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
@@ -30,7 +32,8 @@ func (r *run) mountFs(t *testing.T, f fs.Fs) {
|
||||
require.NoError(t, err)
|
||||
c, err := fuse.Mount(r.mntDir, options...)
|
||||
require.NoError(t, err)
|
||||
filesys := mount.NewFS(f)
|
||||
VFS := vfs.New(f, &vfsflags.Opt)
|
||||
filesys := mount.NewFS(VFS)
|
||||
server := fusefs.New(c, nil)
|
||||
|
||||
// Serve the mount point in the background returning error to errChan
|
||||
|
||||
5
backend/cache/cache_mount_windows_test.go
vendored
5
backend/cache/cache_mount_windows_test.go
vendored
@@ -14,6 +14,8 @@ import (
|
||||
"github.com/rclone/rclone/cmd/cmount"
|
||||
"github.com/rclone/rclone/cmd/mountlib"
|
||||
"github.com/rclone/rclone/fs"
|
||||
"github.com/rclone/rclone/vfs"
|
||||
"github.com/rclone/rclone/vfs/vfsflags"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
@@ -51,7 +53,8 @@ func (r *run) mountFs(t *testing.T, f fs.Fs) {
|
||||
"--FileSystemName=rclone",
|
||||
}
|
||||
|
||||
fsys := cmount.NewFS(f)
|
||||
VFS := vfs.New(f, &vfsflags.Opt)
|
||||
fsys := cmount.NewFS(VFS)
|
||||
host := fuse.NewFileSystemHost(fsys)
|
||||
|
||||
// Serve the mount point in the background returning error to errChan
|
||||
|
||||
Reference in New Issue
Block a user