mirror of
https://github.com/rclone/rclone.git
synced 2025-01-24 12:56:36 +02:00
cmount: fix on Linux - only apply volname for Windows and macOS
This commit is contained in:
parent
703b0535a4
commit
84e21ade6b
@ -69,8 +69,10 @@ func mountOptions(device string, mountpoint string) (options []string) {
|
||||
options = append(options, "--FileSystemName=rclone")
|
||||
}
|
||||
|
||||
if mountlib.VolumeName != "" {
|
||||
options = append(options, "-o", "volname="+mountlib.VolumeName)
|
||||
if runtime.GOOS == "darwin" || runtime.GOOS == "windows" {
|
||||
if mountlib.VolumeName != "" {
|
||||
options = append(options, "-o", "volname="+mountlib.VolumeName)
|
||||
}
|
||||
}
|
||||
if mountlib.AllowNonEmpty {
|
||||
options = append(options, "-o", "nonempty")
|
||||
|
Loading…
x
Reference in New Issue
Block a user