From 6ff0bb825e637161a533ed3569578aacb2c2baa3 Mon Sep 17 00:00:00 2001 From: evileye <48332831+ibiruai@users.noreply.github.com> Date: Tue, 3 Mar 2020 21:59:47 +0300 Subject: [PATCH] mount: fix fail because of too long volume name - fixes #4026 --- cmd/mountlib/mount.go | 3 +++ 1 file changed, 3 insertions(+) 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 {