From 184a9c8da64f107f5c95df6b0766a7ec059cd0a1 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Fri, 25 Jan 2019 17:31:56 +0000 Subject: [PATCH] mountlib: clip blocks returned to 32 bit number for Windows 32 bit - fixes #2934 --- cmd/mountlib/mount.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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