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

Issue 64740043: code review 64740043: archive/tar: Added support for GNU sparse files.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 2 months ago by davidthomas
Modified:
10 years, 1 month ago
Reviewers:
gobot, rsc
CC:
golang-codereviews, dave_cheney.net, dsymonds, rsc
Visibility:
Public.

Description

archive/tar: Added support for GNU sparse files. Supports all the current GNU tar sparse formats, including the old GNU format and the GNU PAX format versions 0.0, 0.1, and 1.0. Fixes issue 3864.

Patch Set 1 #

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

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

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

Total comments: 29

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

Total comments: 1

Patch Set 6 : diff -r 91a7ff192a83 https://code.google.com/p/go #

Patch Set 7 : diff -r 91a7ff192a83 https://code.google.com/p/go #

Patch Set 8 : diff -r b5eda189b974 https://code.google.com/p/go #

Patch Set 9 : diff -r b5eda189b974 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+733 lines, -18 lines) Patch
M src/pkg/archive/tar/common.go View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/archive/tar/reader.go View 1 2 3 4 5 6 7 7 chunks +430 lines, -18 lines 0 comments Download
M src/pkg/archive/tar/reader_test.go View 1 2 3 3 chunks +302 lines, -0 lines 0 comments Download
A src/pkg/archive/tar/testdata/sparse-formats.tar View 1 Binary file 0 comments Download

Messages

Total messages: 17
davidthomas
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
10 years, 2 months ago (2014-02-16 22:09:00 UTC) #1
dave_cheney.net
Thanks for working on this, I haven't made it all the way through the file ...
10 years, 2 months ago (2014-02-16 23:49:11 UTC) #2
davidthomas
https://codereview.appspot.com/64740043/diff/60001/src/pkg/archive/tar/reader.go File src/pkg/archive/tar/reader.go (right): https://codereview.appspot.com/64740043/diff/60001/src/pkg/archive/tar/reader.go#newcode187 src/pkg/archive/tar/reader.go:187: var sp []sparseEntry On 2014/02/16 23:49:11, dfc wrote: > ...
10 years, 2 months ago (2014-02-17 01:33:45 UTC) #3
davidthomas
https://codereview.appspot.com/64740043/diff/80001/src/pkg/archive/tar/reader.go File src/pkg/archive/tar/reader.go (right): https://codereview.appspot.com/64740043/diff/80001/src/pkg/archive/tar/reader.go#newcode111 src/pkg/archive/tar/reader.go:111: mergePAX(hdr, headers) The call to tr.skipUnread() or the call ...
10 years, 2 months ago (2014-02-17 14:04:22 UTC) #4
davidthomas
https://codereview.appspot.com/64740043/diff/60001/src/pkg/archive/tar/reader.go File src/pkg/archive/tar/reader.go (right): https://codereview.appspot.com/64740043/diff/60001/src/pkg/archive/tar/reader.go#newcode516 src/pkg/archive/tar/reader.go:516: rfr := &regFileReader{r: tr.r, nb: nb} On 2014/02/16 23:49:11, ...
10 years, 2 months ago (2014-02-17 21:09:09 UTC) #5
davidthomas
https://codereview.appspot.com/64740043/diff/60001/src/pkg/archive/tar/reader.go File src/pkg/archive/tar/reader.go (right): https://codereview.appspot.com/64740043/diff/60001/src/pkg/archive/tar/reader.go#newcode548 src/pkg/archive/tar/reader.go:548: func (tr *Reader) readOldGNUSparseMap(header []byte) []sparseEntry { On 2014/02/16 ...
10 years, 2 months ago (2014-02-17 21:14:05 UTC) #6
davidthomas
Hello golang-codereviews@googlegroups.com, dave@cheney.net (cc: golang-codereviews@googlegroups.com), Please take another look.
10 years, 2 months ago (2014-02-17 21:14:22 UTC) #7
gobot
R=golang-dev (assigned by dave@cheney.net)
10 years, 2 months ago (2014-02-18 00:57:24 UTC) #8
davidthomas
Hello golang-codereviews@googlegroups.com, dave@cheney.net, gobot@golang.org (cc: golang-codereviews@googlegroups.com), Please take another look.
10 years, 2 months ago (2014-02-21 04:36:07 UTC) #9
gobot
R=dsymonds@golang.org (assigned by rsc@golang.org)
10 years, 2 months ago (2014-02-24 15:10:16 UTC) #10
gobot
R=dave@cheney.net (assigned by dsymonds@golang.org)
10 years, 2 months ago (2014-03-04 05:13:12 UTC) #11
dsymonds
I'm not sure I follow what's going on with sparse files here. Mr Cheney, want ...
10 years, 2 months ago (2014-03-04 05:14:13 UTC) #12
gobot
R=dave@cheney.net (assigned by LeoLiu.PKU@gmail.com)
10 years, 1 month ago (2014-03-17 13:20:26 UTC) #13
gobot
R=golang-dev (assigned by dave@cheney.net)
10 years, 1 month ago (2014-04-02 08:01:44 UTC) #14
rsc
LGTM
10 years, 1 month ago (2014-04-03 19:58:28 UTC) #15
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=11dcaf7474d7 *** archive/tar: add support for GNU sparse files. Supports all the ...
10 years, 1 month ago (2014-04-03 20:01:15 UTC) #16
gobot
10 years, 1 month ago (2014-04-03 22:57:02 UTC) #17
This CL appears to have broken the darwin-amd64-race-cheney builder.
See http://build.golang.org/log/72bb0efbfafb1d203bac1ad749858746a3a6da59
Sign in to reply to this message.

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