mirror of
https://github.com/rclone/rclone.git
synced 2024-12-01 21:04:56 +01:00
mountlib: clip blocks returned to 32 bit number for Windows 32 bit - fixes #2934
This commit is contained in:
parent
88592a1779
commit
184a9c8da6
@ -326,7 +326,11 @@ func ClipBlocks(b *uint64) {
|
|||||||
var max uint64
|
var max uint64
|
||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "windows":
|
case "windows":
|
||||||
|
if runtime.GOARCH == "386" {
|
||||||
|
max = (1 << 32) - 1
|
||||||
|
} else {
|
||||||
max = (1 << 43) - 1
|
max = (1 << 43) - 1
|
||||||
|
}
|
||||||
case "darwin":
|
case "darwin":
|
||||||
// OSX FUSE only supports 32 bit number of blocks
|
// OSX FUSE only supports 32 bit number of blocks
|
||||||
// https://github.com/osxfuse/osxfuse/issues/396
|
// https://github.com/osxfuse/osxfuse/issues/396
|
||||||
|
Loading…
Reference in New Issue
Block a user