rclone/cmd/mountlib
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
..
check_linux.go Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
check_other.go Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
help.go build: update github.com/billziss-gh to github.com/winfsp 2022-04-13 10:18:26 +01:00
mount.go mount: fix --devname and fusermount: unknown option 'fsname' when mounting via rc 2022-04-25 12:17:25 +01:00
rc_test.go test: use T.TempDir to create temporary test directory 2022-02-01 11:47:04 +00:00
rc.go mount: fix --devname and fusermount: unknown option 'fsname' when mounting via rc 2022-04-25 12:17:25 +01:00
sighup_unsupported.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
sighup.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
utils.go mount: add --devname to set the device name sent to FUSE for mount display 2022-02-09 11:56:43 +00:00