BSD 4_2 development
[unix-history] / usr / man / man5 / tp.5
CommitLineData
61a00120
C
1.TH TP 5 "15 January 1983"
2.SH NAME
3tp \- DEC/mag tape formats
4.SH DESCRIPTION
5.I Tp
6dumps files to and extracts files from
7DECtape and magtape.
8The formats of these tapes are the same except
9that magtapes have larger directories.
10.PP
11Block zero contains a
12copy of a stand-alone bootstrap program.
13See
14.IR reboot (8).
15.PP
16Blocks 1 through 24
17for DECtape (1 through 62 for magtape)
18contain a directory of the tape.
19There are 192 (resp. 496) entries in the directory;
208 entries per block;
2164 bytes per entry.
22Each entry has the following format:
23.nf
24.IP ""
25.ta 8n +\w'unsigned short 'u
26struct {
27 char pathname[32];
28 unsigned short mode;
29 char uid;
30 char gid;
31 char unused1;
32 char size[3];
33 long modtime;
34 unsigned short tapeaddr;
35 char unused2[16];
36 unsigned short checksum;
37};
38.fi
39.DT
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 fs (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"
64fs(5), tp(1)
65.SH BUGS
66The
67.I pathname, uid, gid,
68and
69.I size
70fields are too small.