-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstagehdr.h
69 lines (62 loc) · 2.75 KB
/
stagehdr.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
* CMUCS AFStools
* dumpscan - routines for scanning and manipulating AFS volume dumps
*
* Copyright (c) 1998, 2001 Carnegie Mellon University
* All Rights Reserved.
*
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of the
* software, derivative works or modified versions, and any portions
* thereof, and that both notices appear in supporting documentation.
*
* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
* ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
*
* Carnegie Mellon requests users of this software to return to
*
* Software Distribution Coordinator or [email protected]
* School of Computer Science
* Carnegie Mellon University
* Pittsburgh PA 15213-3890
*
* any improvements or extensions that they make and grant Carnegie Mellon
* the rights to redistribute these changes.
*/
/* stagehdr.h - (old) Stage backup header format */
#ifndef _STAGEHDR_H_
#define _STAGEHDR_H_
#include "intNN.h"
/* Stage-related constants */
#define V20_MAGIC 0x00adf8bc /* magic number for stage header */
#define V20_CHECKSUM 84446 /* checksum (same as 4.2bsd dump) */
#define V20_VERSMIN 20 /* minimum version */
#define V20_NAMLEN 64 /* length of host/part/vol names */
#define V20_HDRLEN 1024 /* size of the header */
struct v20_header {
unsigned char c_vers; /* header version (starts at 20) */
unsigned char c_notused[3];
afs_uint32 c_fdate; /* dump "from" date */
afs_uint32 c_tdate; /* dump "to" date */
afs_uint32 c_filenum; /* tape file number */
afs_uint32 c_time; /* time dump was done */
char c_host[V20_NAMLEN]; /* hostname volume came from */
char c_disk[V20_NAMLEN]; /* partition volume came from */
char c_name[V20_NAMLEN]; /* volume name */
afs_uint32 c_id; /* volume ID */
afs_uint32 c_length; /* length of the dump */
afs_uint32 c_level; /* dump level */
afs_uint32 c_magic; /* magic number */
afs_uint32 c_checksum; /* checksum of backup header */
afs_uint32 c_flags; /* feature flags */
};
#define DUMPHDR_MAGIC 0x53214446
#define DUMPHDR_VERS 2
#define DUMPHDR_VERS64 3
#define DUMPHDR_LEN 0x70
#define DUMPHDR_LEN64 0x72
#define DUMPHDR_MAXVOLNAME 65
#define DUMPHDR_MAXSYSNAME 9
#endif /* _STAGEHDR_H_ */