Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(99)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Issue 84830043: code review 84830043: syscall: fix Getfsstat() for BSD

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 9 months ago by pcj
Modified:
11 years, 9 months ago
Reviewers:
gobot, adg , mikio
CC:
golang-codereviews, mikio, adg
Visibility:
Public.
syscall: fix Getfsstat() for BSD The buffer length should be the size in bytes instead of the number of structs. Fixes issue 6588.

Patch Set 1 #

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

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

Patch Set 4 : diff -r 519230b4d06a https://code.google.com/p/go #

Total comments: 4

Patch Set 5 : diff -r 519230b4d06a https://code.google.com/p/go #

Created: 11 years, 9 months ago
Download [raw] [tar.bz2]
Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -157 lines) Patch
A src/pkg/syscall/syscall_bsd_test.go View 1 2 3 4 1 chunk +34 lines, -0 lines 0 comments Download
M src/pkg/syscall/syscall_darwin.go View 1 2 chunks +15 lines, -1 line 0 comments Download
M src/pkg/syscall/syscall_dragonfly.go View 1 2 chunks +15 lines, -1 line 0 comments Download
M src/pkg/syscall/syscall_freebsd.go View 1 2 chunks +15 lines, -1 line 0 comments Download
M src/pkg/syscall/syscall_openbsd.go View 1 2 chunks +15 lines, -1 line 0 comments Download
M src/pkg/syscall/zsyscall_darwin_386.go View 1 1 chunk +0 lines, -17 lines 0 comments Download
M src/pkg/syscall/zsyscall_darwin_amd64.go View 1 1 chunk +0 lines, -17 lines 0 comments Download
M src/pkg/syscall/zsyscall_dragonfly_386.go View 1 1 chunk +0 lines, -17 lines 0 comments Download
M src/pkg/syscall/zsyscall_dragonfly_amd64.go View 1 1 chunk +0 lines, -17 lines 0 comments Download
M src/pkg/syscall/zsyscall_freebsd_386.go View 1 1 chunk +0 lines, -17 lines 0 comments Download
M src/pkg/syscall/zsyscall_freebsd_amd64.go View 1 1 chunk +0 lines, -17 lines 0 comments Download
M src/pkg/syscall/zsyscall_freebsd_arm.go View 1 1 chunk +0 lines, -17 lines 0 comments Download
M src/pkg/syscall/zsyscall_openbsd_386.go View 1 1 chunk +0 lines, -17 lines 0 comments Download
M src/pkg/syscall/zsyscall_openbsd_amd64.go View 1 1 chunk +0 lines, -17 lines 0 comments Download
Total messages: 9
|
pcj
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
11 years, 9 months ago (2014年04月05日 18:10:53 UTC) #1
Hello golang-codereviews@googlegroups.com,
I'd like you to review this change to
https://code.google.com/p/go 
Sign in to reply to this message.
mikio
please add a new test case for Getfsstat into the new file syscall_bsd_test.go, thanks.
11 years, 9 months ago (2014年04月07日 00:00:19 UTC) #2
please add a new test case for Getfsstat into the new file syscall_bsd_test.go,
thanks.
Sign in to reply to this message.
pcj
Hello golang-codereviews@googlegroups.com, mikioh.mikioh@gmail.com (cc: golang-codereviews@googlegroups.com), Please take another look.
11 years, 9 months ago (2014年04月07日 00:36:20 UTC) #3
Hello golang-codereviews@googlegroups.com, mikioh.mikioh@gmail.com (cc:
golang-codereviews@googlegroups.com),
Please take another look.
Sign in to reply to this message.
mikio
Please see http://golang.org/doc/contribute.html#copyright and proceed the process w/ project owner's help. https://codereview.appspot.com/84830043/diff/60001/src/pkg/syscall/syscall_bsd_test.go File src/pkg/syscall/syscall_bsd_test.go (right): ...
11 years, 9 months ago (2014年04月07日 01:01:54 UTC) #4
Please see http://golang.org/doc/contribute.html#copyright and proceed the
process w/ project owner's help.
https://codereview.appspot.com/84830043/diff/60001/src/pkg/syscall/syscall_bs...
File src/pkg/syscall/syscall_bsd_test.go (right):
https://codereview.appspot.com/84830043/diff/60001/src/pkg/syscall/syscall_bs...
src/pkg/syscall/syscall_bsd_test.go:5: // +build freebsd dragonfly darwin
openbsd
alphanumeric order pls
https://codereview.appspot.com/84830043/diff/60001/src/pkg/syscall/syscall_bs...
src/pkg/syscall/syscall_bsd_test.go:15: n, err := syscall.Getfsstat(nil, 1 /*
MNT_WAIT */)
const MNT_WAIT = 1 is fine
https://codereview.appspot.com/84830043/diff/60001/src/pkg/syscall/syscall_bs...
src/pkg/syscall/syscall_bsd_test.go:17: t.Fatalf("Getfsstat: %v", err)
you can just write t.Fatal(err); i mean, looks like people loves a concise style
even in test cases recently.
https://codereview.appspot.com/84830043/diff/60001/src/pkg/syscall/syscall_bs...
src/pkg/syscall/syscall_bsd_test.go:29: t.Fatal("An empty Statfs_t struct was
returned.")
perhaps s/An/an/ because testing package will add a prefix appropriately.
Sign in to reply to this message.
pcj
Hello golang-codereviews@googlegroups.com, mikioh.mikioh@gmail.com (cc: golang-codereviews@googlegroups.com), Please take another look.
11 years, 9 months ago (2014年04月07日 01:18:44 UTC) #5
Sign in to reply to this message.
mikio
LGTM adg: could you please help him for signing off?
11 years, 9 months ago (2014年04月07日 02:08:14 UTC) #6
LGTM
adg: could you please help him for signing off?
Sign in to reply to this message.
adg
On 7 April 2014 12:08, Mikio Hara <mikioh.mikioh@gmail.com> wrote: > adg: could you please help ...
11 years, 9 months ago (2014年04月07日 02:10:33 UTC) #7
On 7 April 2014 12:08, Mikio Hara <mikioh.mikioh@gmail.com> wrote:
> adg: could you please help him for signing off?
Yep already on it.
Sign in to reply to this message.
adg
*** Submitted as https://code.google.com/p/go/source/detail?r=6c4e0c99f534 *** syscall: fix Getfsstat() for BSD The buffer length should be ...
11 years, 9 months ago (2014年04月10日 03:58:10 UTC) #8
*** Submitted as https://code.google.com/p/go/source/detail?r=6c4e0c99f534 ***
syscall: fix Getfsstat() for BSD
The buffer length should be the size in bytes
instead of the number of structs.
Fixes issue 6588.
LGTM=mikioh.mikioh
R=golang-codereviews, mikioh.mikioh, adg
CC=golang-codereviews
https://codereview.appspot.com/84830043
Committer: Andrew Gerrand <adg@golang.org>
Sign in to reply to this message.
gobot
This CL appears to have broken the openbsd-386-rootbsd builder. See http://build.golang.org/log/96fedbf1789e282ac86669e47a6aabdee11e1f3b
11 years, 9 months ago (2014年04月10日 07:54:06 UTC) #9
This CL appears to have broken the openbsd-386-rootbsd builder.
See http://build.golang.org/log/96fedbf1789e282ac86669e47a6aabdee11e1f3b 
Sign in to reply to this message.
|
This is Rietveld f62528b

AltStyle によって変換されたページ (->オリジナル) /