BSD 3 development
[unix-history] / usr / man / man5 / tp.5
CommitLineData
099edc24
BJ
1.TH TP 5
2.SH NAME
3tp \- DEC/mag tape formats
4.SH DESCRIPTION
5The
6command
7.I tp
8dumps files to and extracts files from
9DECtape and magtape.
10The formats of these tapes are the same except
11that magtapes have larger directories.
12.PP
13Block zero contains a
14copy of a stand-alone bootstrap program.
15See
16.IR bproc (8).
17.PP
18Blocks 1 through 24
19for DECtape (1 through 62 for magtape)
20contain a directory of the tape.
21There are 192 (resp. 496) entries in the directory;
228 entries per block;
2364 bytes per entry.
24Each entry has the following format:
25.nf
26.IP ""
27struct {
28 char pathname[32];
29 unsigned short mode;
30 char uid;
31 char gid;
32 char unused1;
33 char size[3];
34 long modtime;
35 unsigned short tapeaddr;
36 char unused2[16];
37 unsigned short checksum;
38};
39.fi
40.PP
41The path name entry is the path name of the
42file when put on the tape.
43If the pathname starts with a zero word,
44the entry is empty.
45It is at most 32 bytes long and ends in a null byte.
46Mode, uid, gid, size and time modified
47are the same as described under i-nodes
48(see file system
49.IR filsys (5)).
50The tape address is the tape block number of the start of
51the contents of the file.
52Every file
53starts on a block boundary.
54The file occupies (size+511)/512 blocks
55of continuous tape.
56The checksum entry has a value such that
57the sum of the 32 words of the directory entry is zero.
58.PP
59Blocks above 25 (resp. 63) are available for file storage.
60.PP
61A fake entry
62has a size of zero.
63.SH "SEE ALSO"
64filsys(5), tp(1)
65.SH BUGS
66The
67.I pathname, uid, gid,
68and
69.I size
70fields are too small.