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

Issue 89900044: code review 89900044: os: cap reads and writes to 2GB on Darwin and FreeBSD (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years ago by bradfitz
Modified:
9 years, 11 months ago
Reviewers:
iant, josharian
CC:
rsc, iant, adg, ruiu, minux1, josharian, golang-codereviews
Visibility:
Public.

Description

os: cap reads and writes to 2GB on Darwin and FreeBSD Fixes Issue 7812

Patch Set 1 #

Patch Set 2 : diff -r 2b0a7f247bb3 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 2b0a7f247bb3 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 2b0a7f247bb3 https://go.googlecode.com/hg/ #

Total comments: 3

Patch Set 5 : diff -r acf346c00e56 https://go.googlecode.com/hg/ #

Total comments: 5

Patch Set 6 : diff -r 490c2d4fda2b https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 7 : diff -r 490c2d4fda2b https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 8 : diff -r aefa5032b453 https://go.googlecode.com/hg/ #

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

Messages

Total messages: 22
bradfitz
Hello rsc@golang.org, iant@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
10 years ago (2014-04-21 22:54:05 UTC) #1
bradfitz
Do other BSDs do the same? Should we just do this everywhere, at least for ...
10 years ago (2014-04-21 22:57:12 UTC) #2
adg
On 2014/04/21 22:57:12, bradfitz wrote: > Do other BSDs do the same? Should we just ...
10 years ago (2014-04-22 03:09:28 UTC) #3
adg
https://codereview.appspot.com/89900044/diff/30002/src/pkg/os/file_unix.go File src/pkg/os/file_unix.go (right): https://codereview.appspot.com/89900044/diff/30002/src/pkg/os/file_unix.go#newcode182 src/pkg/os/file_unix.go:182: if runtime.GOOS == "darwin" && len(b) > darwinMaxRead { ...
10 years ago (2014-04-22 03:15:19 UTC) #4
bradfitz
https://codereview.appspot.com/89900044/diff/30002/src/pkg/os/file_unix.go File src/pkg/os/file_unix.go (right): https://codereview.appspot.com/89900044/diff/30002/src/pkg/os/file_unix.go#newcode182 src/pkg/os/file_unix.go:182: if runtime.GOOS == "darwin" && len(b) > darwinMaxRead { ...
10 years ago (2014-04-22 03:18:15 UTC) #5
adg
https://codereview.appspot.com/89900044/diff/30002/src/pkg/os/file_unix.go File src/pkg/os/file_unix.go (right): https://codereview.appspot.com/89900044/diff/30002/src/pkg/os/file_unix.go#newcode182 src/pkg/os/file_unix.go:182: if runtime.GOOS == "darwin" && len(b) > darwinMaxRead { ...
10 years ago (2014-04-22 03:24:07 UTC) #6
ruiu
FYI, on NetBSD/amd64 6.1.4, read had no problem with >2GB buffer. I tested with a ...
10 years ago (2014-04-22 03:32:13 UTC) #7
iant
Looks basically fine to me. Sounds like it should handle pread, and sounds like it ...
10 years ago (2014-04-22 04:24:50 UTC) #8
minux1
On Tue, Apr 22, 2014 at 12:24 AM, <iant@golang.org> wrote: > Looks basically fine to ...
10 years ago (2014-04-22 05:52:28 UTC) #9
bradfitz
Hello rsc@golang.org, iant@golang.org, adg@golang.org, ruiu@google.com, minux.ma@gmail.com (cc: golang-codereviews@googlegroups.com), Please take another look.
10 years ago (2014-04-25 15:51:29 UTC) #10
bradfitz
PTAL with a paranoid eye On Fri, Apr 25, 2014 at 8:51 AM, <bradfitz@golang.org> wrote: ...
10 years ago (2014-04-25 15:52:07 UTC) #11
josharian
https://codereview.appspot.com/89900044/diff/50001/src/pkg/os/file_unix.go File src/pkg/os/file_unix.go (right): https://codereview.appspot.com/89900044/diff/50001/src/pkg/os/file_unix.go#newcode175 src/pkg/os/file_unix.go:175: // Darwin and FreeBSD can't read or write 2GB+ ...
10 years ago (2014-04-25 18:03:33 UTC) #12
ruiu
https://codereview.appspot.com/89900044/diff/50001/src/pkg/os/file_unix.go File src/pkg/os/file_unix.go (right): https://codereview.appspot.com/89900044/diff/50001/src/pkg/os/file_unix.go#newcode234 src/pkg/os/file_unix.go:234: if needsMaxRW && len(bcap) != len(b) && err == ...
10 years ago (2014-04-25 20:05:17 UTC) #13
bradfitz
https://codereview.appspot.com/89900044/diff/50001/src/pkg/os/file_unix.go File src/pkg/os/file_unix.go (right): https://codereview.appspot.com/89900044/diff/50001/src/pkg/os/file_unix.go#newcode234 src/pkg/os/file_unix.go:234: if needsMaxRW && len(bcap) != len(b) && err == ...
10 years ago (2014-04-25 22:23:12 UTC) #14
ruiu
https://codereview.appspot.com/89900044/diff/50001/src/pkg/os/file_unix.go File src/pkg/os/file_unix.go (right): https://codereview.appspot.com/89900044/diff/50001/src/pkg/os/file_unix.go#newcode234 src/pkg/os/file_unix.go:234: if needsMaxRW && len(bcap) != len(b) && err == ...
10 years ago (2014-04-25 22:31:07 UTC) #15
iant
I agree that pread and pwrite can be simpler, and their comments can be updated ...
10 years ago (2014-04-26 02:57:53 UTC) #16
bradfitz
Existing semantics were unclear. I was treading cautiously. How would you simplify pread/pwrite? Also, in ...
10 years ago (2014-04-26 03:00:03 UTC) #17
iant
On 2014/04/26 03:00:03, bradfitz wrote: > Existing semantics were unclear. I was treading cautiously. How ...
10 years ago (2014-04-26 03:17:47 UTC) #18
bradfitz
Hello rsc@golang.org, iant@golang.org, adg@golang.org, ruiu@google.com, minux.ma@gmail.com, josharian@gmail.com (cc: golang-codereviews@googlegroups.com), Please take another look.
10 years ago (2014-04-26 16:34:18 UTC) #19
josharian
LGTM but please wait for another paranoid reviewer as well https://codereview.appspot.com/89900044/diff/70001/src/pkg/os/file_unix.go File src/pkg/os/file_unix.go (right): https://codereview.appspot.com/89900044/diff/70001/src/pkg/os/file_unix.go#newcode175 ...
10 years ago (2014-04-26 17:01:11 UTC) #20
iant
LGTM https://codereview.appspot.com/89900044/diff/90001/src/pkg/os/file_unix.go File src/pkg/os/file_unix.go (right): https://codereview.appspot.com/89900044/diff/90001/src/pkg/os/file_unix.go#newcode176 src/pkg/os/file_unix.go:176: // even on 64-bit systems. See golang.org/issue/7812 Period ...
10 years ago (2014-04-26 17:23:36 UTC) #21
bradfitz
10 years ago (2014-04-26 17:34:36 UTC) #22
*** Submitted as https://code.google.com/p/go/source/detail?r=e141dda580af ***

os: cap reads and writes to 2GB on Darwin and FreeBSD

Fixes Issue 7812

LGTM=josharian, iant
R=rsc, iant, adg, ruiu, minux.ma, josharian
CC=golang-codereviews
https://codereview.appspot.com/89900044
Sign in to reply to this message.

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