Next: Sparse Formats, Previous: Standard, Up: Tar Internals
(This message will disappear, once this node revised.)
The GNU format uses additional file types to describe new types of files in an archive. These are listed below.
GNUTYPE_DUMPDIR
'D'
size
field gives the total
size of the associated list of files. Each file name is preceded by
either a ‘Y’ (the file should be in this archive) or an ‘N’.
(The file is a directory, or is not stored in the archive.) Each file
name is terminated by a null. There is an additional null after the
last file name.
GNUTYPE_MULTIVOL
'M'
size
field gives the
maximum size of this piece of the file (assuming the volume does
not end before the file is written out). The offset
field
gives the offset from the beginning of the file where this part of
the file begins. Thus size
plus offset
should equal
the original size of the file.
GNUTYPE_SPARSE
'S'
GNUTYPE_VOLHDR
'V'
name
field contains the name
given after the --label=archive-label (-V archive-label) option.
The size
field is zero. Only the first file in each volume
of an archive should have this type.
You may have trouble reading a GNU format archive on a non-GNU system if the options --incremental (-G), --multi-volume (-M), --sparse (-S), or --label=archive-label (-V archive-label) were used when writing the archive. In general, if tar does not use the GNU-added fields of the header, other versions of tar should be able to read the archive. Otherwise, the tar program will give an error, the most likely one being a checksum error.