BSD 4_2 development
[unix-history] / usr / include / dumprestor.h
CommitLineData
53bb28d1
C
1/* dumprestor.h 2.5 83/08/11 */
2
3/*
4 * TP_BSIZE is the size of file blocks on the dump tapes.
5 * Note that TP_BSIZE must be a multiple of DEV_BSIZE.
6 *
7 * NTREC is the number of TP_BSIZE blocks that are written
8 * in each tape record.
9 *
10 * TP_NINDIR is the number of indirect pointers in a TS_INODE
11 * or TS_ADDR record. Note that it must be a power of two.
12 */
13#define TP_BSIZE 1024
14#define NTREC 10
15#define TP_NINDIR (TP_BSIZE/2)
16
17#define TS_TAPE 1
18#define TS_INODE 2
19#define TS_BITS 3
20#define TS_ADDR 4
21#define TS_END 5
22#define TS_CLRI 6
23#define OFS_MAGIC (int)60011
24#define NFS_MAGIC (int)60012
25#define CHECKSUM (int)84446
26
27union u_spcl {
28 char dummy[TP_BSIZE];
29 struct s_spcl {
30 int c_type;
31 time_t c_date;
32 time_t c_ddate;
33 int c_volume;
34 daddr_t c_tapea;
35 ino_t c_inumber;
36 int c_magic;
37 int c_checksum;
38 struct dinode c_dinode;
39 int c_count;
40 char c_addr[TP_NINDIR];
41 } s_spcl;
42} u_spcl;
43
44#define spcl u_spcl.s_spcl
45
46#define DUMPOUTFMT "%-16s %c %s" /* for printf */
47 /* name, incno, ctime(date) */
48#define DUMPINFMT "%16s %c %[^\n]\n" /* inverse for scanf */