DEVEL15-vol-split-nearino-20090324
[openafs.git] / src / volser / dump.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  * 
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 /*
11         System:         Volser
12         Module:         dump.h
13         Institution:    The Information Technology Center, Carnegie-Mellon University
14
15  */
16
17 #define DUMPVERSION     1
18
19 #define DUMPENDMAGIC    0x3A214B6E
20 #define DUMPBEGINMAGIC  0xB3A11322
21
22 #define D_DUMPHEADER    1
23 #define D_VOLUMEHEADER  2
24 #define D_VNODE         3
25 #define D_DUMPEND       4
26
27 #define D_MAX           20
28
29 #define MAXDUMPTIMES    50
30
31 /* DumpHeader:
32    Each {from,to} pair of time values gives a span of time covered by this dump.
33    Merged dumps may have multiple pairs if there are dumps missing from the merge */
34
35 struct DumpHeader {
36     afs_int32 version;
37     VolumeId volumeId;
38     char volumeName[VNAMESIZE];
39     int nDumpTimes;             /* Number of pairs */
40     struct {
41         afs_int32 from, to;
42     } dumpTimes[MAXDUMPTIMES];
43 };
44
45
46 /* Some handshaking constants for volume move */
47 #define SHAKE1  "x"
48 #define SHAKE2  "y"
49 #define SHAKE3  "z"
50 #define SHAKE4  "P"
51 #define SHAKE5  "Q"
52 #define SHAKE_ABORT     "!"