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

mount: fix fail because of too long volume name - fixes #4026

evileye6ff0bb825e63
diff --git a/cmd/mountlib/mount.go b/cmd/mountlib/mount.go
index 0b6eadebe..cd2b795d3 100644
--- a/cmd/mountlib/mount.go
+++ b/cmd/mountlib/mount.go
@@ -322,6 +322,9 @@ be copied to the vfs cache before opening with --vfs-cache-mode full.
VolumeName = strings.Replace(VolumeName, ":", " ", -1)
VolumeName = strings.Replace(VolumeName, "/", " ", -1)
VolumeName = strings.TrimSpace(VolumeName)
+ if runtime.GOOS == "windows" && len(VolumeName) > 32 {
+ VolumeName = VolumeName[:32]
+ }
// Start background task if --background is specified
if Daemon {