]> Cypherpunks repositories - gostls13.git/commit
os: cut limited read to 1 GB
authorRuss Cox <rsc@golang.org>
Fri, 2 May 2014 16:12:40 +0000 (12:12 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 2 May 2014 16:12:40 +0000 (12:12 -0400)
commit3879f0abcd94598723d6c3024e5006b52b736b7b
treefc4add157997316897bd15d82d806de3fcee82ec
parent3b3e1a09a9dc495a0d5fc298f472538a7216a503
os: cut limited read to 1 GB

If systems actually read that much, using 2GB-1 will
result in misaligned subsequent reads. Use 1GB instead,
which will certainly keep reads aligned and which is
plenty large enough.

Update #7812.

LGTM=bradfitz
R=bradfitz
CC=golang-codereviews
https://golang.org/cl/94070044
src/pkg/os/file_unix.go