3
* dumpscan - routines for scanning and manipulating AFS volume dumps
5
* Copyright (c) 1998 Carnegie Mellon University
8
* Permission to use, copy, modify and distribute this software and its
9
* documentation is hereby granted, provided that both the copyright
10
* notice and this permission notice appear in all copies of the
11
* software, derivative works or modified versions, and any portions
12
* thereof, and that both notices appear in supporting documentation.
14
* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
15
* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
16
* ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
18
* Carnegie Mellon requests users of this software to return to
20
* Software Distribution Coordinator or Software_Distribution@CS.CMU.EDU
21
* School of Computer Science
22
* Carnegie Mellon University
23
* Pittsburgh PA 15213-3890
25
* any improvements or extensions that they make and grant Carnegie Mellon
26
* the rights to redistribute these changes.
29
/* stagehdr.h - (old) Stage backup header format */
36
/* Stage-related constants */
37
#define STAGE_MAGIC 0x00adf8bc /* magic number for stage header */
38
#define STAGE_CHECKSUM 84446 /* checksum (same as 4.2bsd dump) */
39
#define STAGE_VERSMIN 20 /* minimum version */
40
#define STAGE_NAMLEN 64 /* length of host/part/vol names */
41
#define STAGE_HDRLEN 1024 /* size of the header */
44
unsigned char c_vers; /* header version (starts at 20) */
45
unsigned char c_notused[3];
46
afs_uint32 c_fdate; /* dump "from" date */
47
afs_uint32 c_tdate; /* dump "to" date */
48
afs_uint32 c_filenum; /* tape file number */
49
afs_uint32 c_time; /* time dump was done */
50
char c_host[STAGE_NAMLEN]; /* hostname volume came from */
51
char c_disk[STAGE_NAMLEN]; /* partition volume came from */
52
char c_name[STAGE_NAMLEN]; /* volume name */
53
afs_uint32 c_id; /* volume ID */
54
afs_uint32 c_length; /* length of the dump */
55
afs_uint32 c_level; /* dump level */
56
afs_uint32 c_magic; /* magic number */
57
afs_uint32 c_checksum; /* checksum of backup header */
58
afs_uint32 c_flags; /* feature flags */
61
#endif /* _STAGEHDR_H_ */