• Russ Cox's avatar
    os: cut limited read to 1 GB · 3879f0ab
    Russ Cox authored
    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
    3879f0ab
file_unix.go 8.47 KB