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