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

Issue 968042: code review 968042: FileInfo: regularize the types of some fields. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 11 months ago by r
Modified:
14 years, 11 months ago
Reviewers:
CC:
rsc, cw, golang-dev
Visibility:
Public.

Description

FileInfo: regularize the types of some fields. Uid, Gid become int. File size info becomes int64. Times become int64.

Patch Set 1 #

Patch Set 2 : code review 968042: FileInfo: regularize the types of some fields. #

Patch Set 3 : code review 968042: FileInfo: regularize the types of some fields. #

Total comments: 2

Patch Set 4 : code review 968042: FileInfo: regularize the types of some fields. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -50 lines) Patch
M src/pkg/archive/tar/common.go View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/archive/tar/reader.go View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/archive/tar/writer.go View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/io/ioutil/ioutil.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/io/ioutil/ioutil_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/os/os_test.go View 5 chunks +8 lines, -8 lines 0 comments Download
M src/pkg/os/stat_darwin.go View 1 chunk +8 lines, -8 lines 0 comments Download
M src/pkg/os/stat_freebsd.go View 1 chunk +7 lines, -7 lines 0 comments Download
M src/pkg/os/stat_linux.go View 1 chunk +9 lines, -9 lines 0 comments Download
M src/pkg/os/stat_mingw.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/os/types.go View 1 1 chunk +8 lines, -8 lines 0 comments Download

Messages

Total messages: 5
r
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 11 months ago (2010-04-22 20:34:33 UTC) #1
cw
LG http://codereview.appspot.com/968042/diff/5001/6001 File src/pkg/archive/tar/common.go (left): http://codereview.appspot.com/968042/diff/5001/6001#oldcode35 src/pkg/archive/tar/common.go:35: Mode int64 Does this really need to be ...
14 years, 11 months ago (2010-04-22 20:50:26 UTC) #2
rsc
LGTM
14 years, 11 months ago (2010-04-22 21:00:51 UTC) #3
r
*** Submitted as http://code.google.com/p/go/source/detail?r=08c8a3dfeef2 *** FileInfo: regularize the types of some fields. Uid, Gid become ...
14 years, 11 months ago (2010-04-22 21:01:39 UTC) #4
r2
14 years, 11 months ago (2010-04-22 21:03:27 UTC) #5
apologies; submitted before i saw this message.

On Apr 22, 2010, at 1:50 PM, cw@f00f.org wrote:

> LG
>
>
> http://codereview.appspot.com/968042/diff/5001/6001
> File src/pkg/archive/tar/common.go (left):
>
> http://codereview.appspot.com/968042/diff/5001/6001#oldcode35
> src/pkg/archive/tar/common.go:35: Mode     int64
> Does this really need to be 64-bits?

it's 64 bits on some operating systems, so it seemed safe to keep the  
bits available in case they're used by someone.

> http://codereview.appspot.com/968042/diff/5001/6001
> File src/pkg/archive/tar/common.go (right):
>
> http://codereview.appspot.com/968042/diff/5001/6001#newcode39
> src/pkg/archive/tar/common.go:39: Mtime    int64
> The units here are seconds since epoch.
>
> The time package uses nanoseconds.

that's up to the package's author.

> Is this something we should consider addressing?
>
> Either:
> - document it as such, get over the differences
> - pick a preferred form, leave as int64
> - create a new type and have mechanism to use that cleanly

i await discussion. if anything happens it should be part of a  
separate CL because it's an unrelated issue.

-rob


Sign in to reply to this message.

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