1
mirror of https://github.com/rclone/rclone synced 2024-07-19 06:11:36 +02:00

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

This commit is contained in:
Nick Craig-Wood 2019-01-25 17:31:56 +00:00
parent 88592a1779
commit 184a9c8da6

View File

@ -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