Skip to content

Commit

Permalink
archive/tar: add support for GNU sparse files.
Browse files Browse the repository at this point in the history
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 #3864.

LGTM=rsc
R=golang-codereviews, dave, gobot, dsymonds, rsc
CC=golang-codereviews
https://golang.org/cl/64740043
  • Loading branch information
davidthomas426 authored and rsc committed Apr 3, 2014
1 parent dd9c403 commit 730db0a
Show file tree
Hide file tree
Showing 4 changed files with 732 additions and 17 deletions.
1 change: 1 addition & 0 deletions src/pkg/archive/tar/common.go
Expand Up @@ -38,6 +38,7 @@ const (
TypeXGlobalHeader = 'g' // global extended header
TypeGNULongName = 'L' // Next file has a long name
TypeGNULongLink = 'K' // Next file symlinks to a file w/ a long name
TypeGNUSparse = 'S' // sparse file
)

// A Header represents a single header in a tar archive.
Expand Down

0 comments on commit 730db0a

Please sign in to comment.