mirror of
https://github.com/rclone/rclone
synced 2024-11-23 00:06:55 +01:00
nfsmount: fix --volname being ignored #7503
Before this change, nfsmount ignored the --volname flag. After this change, the -- volname flag is respected, making it possible to set a custom volume name. macOS users should note that Finder will show the correct volume name in most places, but a notable exception is the sidebar, which will show "localhost". This seems to be a system limitation (at least without `sudo`), but see the discussion at https://github.com/rclone/rclone/issues/7503#issuecomment-1933997678 for some possible workarounds.
This commit is contained in:
parent
0e2f1d64e3
commit
7b8bbe531e
@ -70,7 +70,7 @@ func mount(VFS *vfs.VFS, mountpoint string, opt *mountlib.Options) (asyncerrors
|
||||
}
|
||||
cmd = append(cmd, "mount")
|
||||
cmd = append(cmd, options...)
|
||||
cmd = append(cmd, "localhost:", mountpoint)
|
||||
cmd = append(cmd, "localhost:"+opt.VolumeName, mountpoint)
|
||||
fs.Debugf(nil, "Running mount command: %q", cmd)
|
||||
|
||||
out, err := exec.Command(cmd[0], cmd[1:]...).CombinedOutput()
|
||||
|
Loading…
Reference in New Issue
Block a user