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

mountlib: clip blocks returned to 32 bit number for Windows 32 bit - fixes #2934

Nick Craig-Wood184a9c8da64f
diff --git a/cmd/mountlib/mount.go b/cmd/mountlib/mount.go
index 4794e2b52..ecb755f4a 100644
--- a/cmd/mountlib/mount.go
+++ b/cmd/mountlib/mount.go
@@ -326,7 +326,11 @@ func ClipBlocks(b *uint64) {
var max uint64
switch runtime.GOOS {
case "windows":
- max = (1 << 43) - 1
+ if runtime.GOARCH == "386" {
+ max = (1 << 32) - 1
+ } else {
+ max = (1 << 43) - 1
+ }
case "darwin":
// OSX FUSE only supports 32 bit number of blocks
// https://github.com/osxfuse/osxfuse/issues/396