16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

pax header block<br />

v An optional header block with extended header records. This header block is of<br />

the form described in pax Header Block , with a typeflag value of x or g. The<br />

extended header records, described in pax Extended Header , shall be included<br />

as the data for this header block.<br />

v A header block that describes the file. Any fields in the preceding optional<br />

extended header shall override the associated fields in this header block for this<br />

file.<br />

v Zero or more blocks that contain the contents of the file.<br />

At the end of the archive file there shall be two 512-byte blocks filled with binary<br />

zeros, interpreted as an end-of-archive indicator.<br />

A schematic of an example archive with global extended header records and two<br />

actual files is shown in pax Format Archive Example. In the example, the second<br />

file in the archive has no extended header preceding it, presumably because it has<br />

no need for extended attributes.<br />

Table 40. Example of a format archive for pax<br />

USTAR Header [typeflag=g] Global Extended Header<br />

Global Extended Header Data<br />

USTAR Header [typeflag=x] File 1: Extended Header is included<br />

Extended Header Data<br />

USTAR Header [typeflag=0]<br />

Data for File 1<br />

USTAR Header [typeflag=0] File 2: No Extended Header is included<br />

Data for File 2<br />

Block of binary zeroes End of Archive Indicator<br />

Block of binary zeroes<br />

Description<br />

The pax header block shall be identical to the USTAR header block described in<br />

USTAR Interchange Format , except that two additional typeflag values are defined:<br />

x Represents extended header records for the following file in the archive<br />

(which shall have its own USTAR header block). The format of these<br />

extended header records shall be as described in pax Extended Header.<br />

g Represents global extended header records for the following files in the<br />

archive. The format of these extended header records shall be as described<br />

in pax Extended Header. Each value shall affect all subsequent files that do<br />

not override that value in their own extended header record and until<br />

another global extended header record is reached that provides another<br />

value for the same field. The typeflag g global headers should not be used<br />

with interchange media that could suffer partial data loss in transporting the<br />

archive.<br />

For both of these types, the size field shall be the size of the extended header<br />

records in octets. The other fields in the header block are not meaningful to this<br />

version of the pax utility. However, if this archive is read by a pax utility conforming<br />

to the ISOP<strong>OS</strong>IX-2:1993 standard, the header block fields are used to create a<br />

pax<br />

Appendix H. File Formats 917

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!