Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

cmount: make --volname work for Windows - fixes #2679

Nick Craig-Woodb3704597f347
diff --git a/cmd/cmount/mount.go b/cmd/cmount/mount.go
index 9aa0b0a71..2a947aa77 100644
--- a/cmd/cmount/mount.go
+++ b/cmd/cmount/mount.go
@@ -53,7 +53,6 @@ func mountOptions(device string, mountpoint string) (options []string) {
// OSX options
if runtime.GOOS == "darwin" {
- options = append(options, "-o", "volname="+mountlib.VolumeName)
if mountlib.NoAppleDouble {
options = append(options, "-o", "noappledouble")
}
@@ -70,6 +69,9 @@ func mountOptions(device string, mountpoint string) (options []string) {
options = append(options, "--FileSystemName=rclone")
}
+ if mountlib.VolumeName != "" {
+ options = append(options, "-o", "volname="+mountlib.VolumeName)
+ }
if mountlib.AllowNonEmpty {
options = append(options, "-o", "nonempty")
}