rclone/vfs/vfstest
Nick Craig-Wood 5605e34f7b mount: fix --devname and fusermount: unknown option 'fsname' when mounting via rc
In this commit

f4c40bf79d mount: add --devname to set the device name sent to FUSE for mount display

The --devname parameter was added. However it was soon noticed that
attempting to mount via the rc gave this error:

    mount helper error: fusermount: unknown option 'fsname'
    mount FAILED: fusermount: exit status 1

This was because the DeviceName (and VolumeName) parameter was never
being initialised when the mount was called via the rc.

The fix for this was to refactor the rc interface so it called the
same Mount method as the command line mount which initialised the
DeviceName and VolumeName parameters properly.

This also fixes the cmd/mount tests which were breaking in the same
way but since they aren't normally run on the CI we didn't notice.

Fixes #6044
2022-04-25 12:17:25 +01:00
..
dir.go Spelling fixes 2020-10-14 15:21:31 +01:00
edge_cases.go vfstests: move functional tests from mountlib and make them work with VFS 2020-04-20 10:42:33 +01:00
file.go vfstests: move functional tests from mountlib and make them work with VFS 2020-04-20 10:42:33 +01:00
fs.go mount: fix --devname and fusermount: unknown option 'fsname' when mounting via rc 2022-04-25 12:17:25 +01:00
os.go vfstests: move functional tests from mountlib and make them work with VFS 2020-04-20 10:42:33 +01:00
read_non_unix.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
read_unix.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
read.go vfs: remove workaround Sleep() calls from tests 2020-06-30 12:03:39 +01:00
vfs.go vfstests: move functional tests from mountlib and make them work with VFS 2020-04-20 10:42:33 +01:00
write_non_unix.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
write_unix.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
write.go vfs: factor the vfs cache into its own package 2020-04-20 10:42:33 +01:00