rclone/cmd
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
..
about Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
all bisync: implementation #5164 2021-11-01 21:00:27 +03:00
authorize config: remove log.Fatal and replace with error passing where possible 2021-03-14 16:03:35 +00:00
backend docs: fix links to rc sections 2022-01-12 19:51:26 +01:00
bisync Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
cachestats Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
cat docs: punctuation cleanup 2021-10-20 22:56:19 +02:00
check docs: improve grammar and fix typos (#5361) 2021-11-04 12:50:43 +01:00
checksum docs: punctuation cleanup 2021-10-20 22:56:19 +02:00
cleanup docs: Add full stops for consistency in rclone --help 2020-09-08 16:26:09 +01:00
cmount build: update github.com/billziss-gh to github.com/winfsp 2022-04-13 10:18:26 +01:00
config Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
copy lib/file: improve error message when attempting to create dir on nonexistent drive on windows 2021-10-01 23:18:39 +02:00
copyto docs: Removed ambiguity from copy command docs 2021-08-19 16:34:57 +01:00
copyurl docs: fixed some typos 2021-04-28 22:55:27 +01:00
cryptcheck Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
cryptdecode cryptdecode: fix formatting 2021-01-21 10:39:51 +00:00
dedupe docs: improve grammar and fix typos (#5361) 2021-11-04 12:50:43 +01:00
delete Use binary prefixes for size and rate units 2021-04-27 02:25:52 +03:00
deletefile Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
genautocomplete docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
gendocs lib/file: improve error message when attempting to create dir on nonexistent drive on windows 2021-10-01 23:18:39 +02:00
hashsum hashsum: support creating hash from data received on stdin 2021-11-11 15:16:45 +01:00
link link: use "off" value for unset expiry 2021-04-07 13:58:37 +01:00
listremotes docs: punctuation cleanup 2021-10-20 22:56:19 +02:00
ls docs: improve grammar and fix typos (#5361) 2021-11-04 12:50:43 +01:00
lsd docs: punctuation cleanup 2021-10-20 22:56:19 +02:00
lsf Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
lsjson Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
lsl cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
md5sum hashsum: support creating hash from data received on stdin 2021-11-11 15:16:45 +01:00
mkdir mkdir: warn when using mkdir on remotes which can't have empty directories 2020-07-08 17:55:58 +01:00
mount mount: add --devname to set the device name sent to FUSE for mount display 2022-02-09 11:56:43 +00:00
mount2 mount: add --devname to set the device name sent to FUSE for mount display 2022-02-09 11:56:43 +00:00
mountlib mount: fix --devname and fusermount: unknown option 'fsname' when mounting via rc 2022-04-25 12:17:25 +01:00
move docs: fix markup of arguments #4276 2021-01-25 22:40:46 +03:00
moveto docs: Removed ambiguity from copy command docs 2021-08-19 16:34:57 +01:00
ncdu Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
obscure docs: improve grammar and fix typos (#5361) 2021-11-04 12:50:43 +01:00
purge docs: update documentation of commands delete,purge,rmdir,rmdirs 2020-11-23 17:10:08 +00:00
rc Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
rcat rcat: add --size flag for more efficient uploads of known size - fixes #4403 2021-04-13 12:25:47 +01:00
rcd rcd: Added systemd notification during the 'rclone rcd' command call. This also fixes #5073. 2021-03-11 17:12:14 +00:00
reveal cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
rmdir docs: update documentation of commands delete,purge,rmdir,rmdirs 2020-11-23 17:10:08 +00:00
rmdirs docs: update documentation of commands delete,purge,rmdir,rmdirs 2020-11-23 17:10:08 +00:00
selfupdate Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
serve mount: fix --devname and fusermount: unknown option 'fsname' when mounting via rc 2022-04-25 12:17:25 +01:00
settier Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
sha1sum hashsum: support creating hash from data received on stdin 2021-11-11 15:16:45 +01:00
size docs: punctuation cleanup 2021-10-20 22:56:19 +02:00
sync docs: Removed ambiguity from copy command docs 2021-08-19 16:34:57 +01:00
test test makefiles: add --chargen flag to make ascii chargen files 2022-04-13 23:07:56 +01:00
touch touch: fix issue where directory is created instead of file 2022-01-28 20:29:12 +01:00
tree tree: remove obsolete --human replaced by global --human-readable - fixes #5868 2021-12-21 20:17:00 +01:00
version Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
cmd.go Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
help.go docs: improve standard list of properties for options 2022-01-28 19:43:51 +01:00
progress.go Add a download flag to hashsum and related commands to force rclone to download and hash files locally 2020-12-27 15:40:44 +00:00
selfupdate_disabled.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
selfupdate_enabled.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
siginfo_darwin.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
siginfo_others.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00