1: /*
2: * Copyright (c) 1980 Regents of the University of California.
3: * All rights reserved. The Berkeley software License Agreement
4: * specifies the terms and conditions for redistribution.
5: *
6: * @(#)dumprestore.h 5.1 (Berkeley) 6/5/85
7: */
8:
9: /*
10: * TP_BSIZE is the size of file blocks on the dump tapes.
11: * Note that TP_BSIZE must be a multiple of DEV_BSIZE.
12: *
13: * NTREC is the number of TP_BSIZE blocks that are written
14: * in each tape record. HIGHDENSITYTREC is the number of
15: * TP_BSIZE blocks that are written in each tape record on
16: * 6250 BPI or higher density tapes.
17: *
18: * TP_NINDIR is the number of indirect pointers in a TS_INODE
19: * or TS_ADDR record. Note that it must be a power of two.
20: */
21: #define TP_BSIZE 1024
22: #define NTREC 10
23: #define HIGHDENSITYTREC 32
24: #define TP_NINDIR (TP_BSIZE/2)
25:
26: #define TS_TAPE 1
27: #define TS_INODE 2
28: #define TS_BITS 3
29: #define TS_ADDR 4
30: #define TS_END 5
31: #define TS_CLRI 6
32: #define OFS_MAGIC (int)60011
33: #define NFS_MAGIC (int)60012
34: #define CHECKSUM (int)84446
35:
36: union u_spcl {
37: char dummy[TP_BSIZE];
38: struct s_spcl {
39: int c_type;
40: time_t c_date;
41: time_t c_ddate;
42: int c_volume;
43: daddr_t c_tapea;
44: ino_t c_inumber;
45: int c_magic;
46: int c_checksum;
47: struct dinode c_dinode;
48: int c_count;
49: char c_addr[TP_NINDIR];
50: } s_spcl;
51: } u_spcl;
52:
53: #define spcl u_spcl.s_spcl
54:
55: #define DUMPOUTFMT "%-16s %c %s" /* for printf */
56: /* name, incno, ctime(date) */
57: #define DUMPINFMT "%16s %c %[^\n]\n" /* inverse for scanf */
Defined variables
Defined struct's
s_spcl
defined in line
38; used 18 times
Defined union's
u_spcl
defined in line
36; used 14 times
Defined macros
NTREC
defined in line
22; used 3 times
TP_BSIZE
defined in line
21; used 66 times
- in line 24,
37
- in /usr/src/etc/dump/dumpitime.c line
234-240(3),
259
- in /usr/src/etc/dump/dumpmain.c line
41(2),
224,
252,
264
- in /usr/src/etc/dump/dumprmt.c line
71-74(3)
- in /usr/src/etc/dump/dumptape.c line
14,
48,
65,
90,
98,
154,
437-440(3)
- in /usr/src/etc/dump/dumptraverse.c line
195-196(2),
216,
228-230(2)
- in /usr/src/etc/restore/tape.c line
98,
181,
467-468(3),
481-497(9),
511,
611-618(4),
626,
634-638(3),
660,
680-685(5),
694-699(3),
705-710(3),
761,
805,
851
spcl
defined in line
53; used 60 times
- in /usr/src/etc/dump/dumpitime.c line
81,
94-96(2),
128,
147,
157
- in /usr/src/etc/dump/dumpmain.c line
34,
198-200(2),
292-297(3)
- in /usr/src/etc/dump/dumptape.c line
78,
95,
303-304(2)
- in /usr/src/etc/dump/dumptraverse.c line
46(2),
135-137(3),
204-207(3),
217,
227-230(3),
238-241(4),
248-249(2)
- in /usr/src/etc/restore/tape.c line
134-137(2),
155-159(4),
170-181(5),
189,
319-320(2),
440-441(2),
465-472(3),
478-479(2),
498-505(4),
512
Usage of this include