mountlib: clip blocks returned to 32 bit number for Windows 32 bit - fixes #2934
This commit is contained in:
parent
88592a1779
commit
184a9c8da6
1 changed files with 5 additions and 1 deletions
|
@ -326,7 +326,11 @@ func ClipBlocks(b *uint64) {
|
|||
var max uint64
|
||||
switch runtime.GOOS {
|
||||
case "windows":
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue