foreground and background windows
[unix-history] / usr / src / include / protocols / dumprestore.h
CommitLineData
524aa063 1/* dumprestore.h 2.5 83/08/11 */
8959d9ce 2
b6407c9d
KM
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 *
b6407c9d
KM
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 */
f5bba473 13#define TP_BSIZE 1024
8959d9ce 14#define NTREC 10
f5bba473 15#define TP_NINDIR (TP_BSIZE/2)
8959d9ce
KM
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
c287fc13
KM
23#define OFS_MAGIC (int)60011
24#define NFS_MAGIC (int)60012
8959d9ce
KM
25#define CHECKSUM (int)84446
26
f5bba473
KM
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
8959d9ce 45
8959d9ce
KM
46#define DUMPOUTFMT "%-16s %c %s" /* for printf */
47 /* name, incno, ctime(date) */
48#define DUMPINFMT "%16s %c %[^\n]\n" /* inverse for scanf */