Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(66)

Issue 94070044: code review 94070044: os: cut limited read to 1 GB (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by rsc
Modified:
10 years, 8 months ago
Reviewers:
bradfitz
CC:
bradfitz, golang-codereviews
Visibility:
Public.

Description

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 issue 7812.

Patch Set 1 #

Patch Set 2 : diff -r b0443478e712 https://code.google.com/p/go/ #

Patch Set 3 : diff -r b0443478e712 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M src/pkg/os/file_unix.go View 1 2 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 4
rsc
Hello bradfitz (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
10 years, 8 months ago (2014-05-02 15:43:24 UTC) #1
bradfitz
LGTM I'd expand the comment a bit more with this rationale but I suppose it'll ...
10 years, 8 months ago (2014-05-02 15:52:39 UTC) #2
rsc
expanded comment
10 years, 8 months ago (2014-05-02 16:12:21 UTC) #3
rsc
10 years, 8 months ago (2014-05-02 16:12:45 UTC) #4
*** Submitted as https://code.google.com/p/go/source/detail?r=15e9d3c5d705 ***

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 issue 7812.

LGTM=bradfitz
R=bradfitz
CC=golang-codereviews
https://codereview.appspot.com/94070044
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b