Coda Distributed File System
utils-src
mond
mondgen.h
Go to the documentation of this file.
1
#ifndef _BLURB_
2
#define _BLURB_
3
/*
4
5
Coda: an Experimental Distributed File System
6
Release 6
7
8
Copyright (c) 1987-2003 Carnegie Mellon University
9
All Rights Reserved
10
11
Permission to use, copy, modify and distribute this software and its
12
documentation is hereby granted, provided that both the copyright
13
notice and this permission notice appear in all copies of the
14
software, derivative works or modified versions, and any portions
15
thereof, and that both notices appear in supporting documentation, and
16
that credit is given to Carnegie Mellon University in all documents
17
and publicity pertaining to direct or indirect use of this code or its
18
derivatives.
19
20
CODA IS AN EXPERIMENTAL SOFTWARE SYSTEM AND IS KNOWN TO HAVE BUGS,
21
SOME OF WHICH MAY HAVE SERIOUS CONSEQUENCES. CARNEGIE MELLON ALLOWS
22
FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION. CARNEGIE MELLON
23
DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER
24
RESULTING DIRECTLY OR INDIRECTLY FROM THE USE OF THIS SOFTWARE OR OF
25
ANY DERIVATIVE WORK.
26
27
Carnegie Mellon encourages users of this software to return any
28
improvements or extensions that they make, and to grant Carnegie
29
Mellon the rights to redistribute these changes without encumbrance.
30
*/
31
#endif
/*_BLURB_*/
32
33
#ifndef _MOND_H_
34
#define _MOND_H_
35
36
/* requires lock.h */
37
38
#define LOGFILE_PREFIX "mond.log"
39
#define DATAFILE_PREFIX "mond.data"
40
41
enum
bool
42
{
43
mfalse
,
44
mtrue
45
};
46
47
typedef
char
*
CONDITION
;
48
typedef
struct
Lock
MUTEX
;
49
50
#define SIGCHAR 32
51
52
enum
dataClass
53
{
54
SESSION
,
55
COMM
,
56
CLNTCALL
,
57
CLNTMCALL
,
58
CLNTRVM
,
59
VCB
,
60
ADVICE
,
61
MINICACHE
,
62
OVERFLOW
,
63
SRVCALL
,
64
SRVRES
,
65
SRVOVRFLW
,
66
SRVRVMRES
,
67
IOTINFO
,
68
IOTSTAT
,
69
SUBTREE
,
70
REPAIR
,
71
RWSSTAT
,
72
dataClass_last_tag
73
};
74
75
#define SESSION_TAG 1611899
76
#define COMM_TAG 2611899
77
#define CLNTCALL_TAG 3611899
78
#define CLNTMCALL_TAG 3711899
79
#define CLNTRVM_TAG 3811899
80
#define VCB_TAG 4811899
81
#define ADVICE_TAG 3911899
82
#define MINICACHE_TAG 9611899
83
#define OVERFLOW_TAG 4611899
84
#define SRVCALL_TAG 5611899
85
#define SRVRES_TAG 6611899
86
#define SRVOVRFLW_TAG 7611899
87
#define SRVRVMRES_TAG 8611899
88
#define IOTINFO_TAG 1234567
89
#define IOTSTAT_TAG 2345678
90
#define SUBTREE_TAG 3456789
91
#define REPAIR_TAG 4567890
92
#define RWSSTAT_TAG 5678901
93
94
/* this is the magic number that signifies the start of a collection
95
set...
96
It's probably a good idea to change it everytime you change the format
97
of the data file.
98
History: 755515,
99
*/
100
101
#define MAGIC_NUMBER 425515
102
#define END_GUARD 679371
103
104
#define CLIENT_TABSIZE 512
105
106
#endif _MOND_H_
CONDITION
char * CONDITION
Definition:
mondgen.h:47
dataClass
dataClass
Definition:
mondgen.h:53
OVERFLOW
@ OVERFLOW
Definition:
mondgen.h:62
SUBTREE
@ SUBTREE
Definition:
mondgen.h:69
SRVRES
@ SRVRES
Definition:
mondgen.h:64
CLNTRVM
@ CLNTRVM
Definition:
mondgen.h:58
dataClass_last_tag
@ dataClass_last_tag
Definition:
mondgen.h:72
RWSSTAT
@ RWSSTAT
Definition:
mondgen.h:71
CLNTMCALL
@ CLNTMCALL
Definition:
mondgen.h:57
REPAIR
@ REPAIR
Definition:
mondgen.h:70
COMM
@ COMM
Definition:
mondgen.h:55
MINICACHE
@ MINICACHE
Definition:
mondgen.h:61
IOTSTAT
@ IOTSTAT
Definition:
mondgen.h:68
SRVOVRFLW
@ SRVOVRFLW
Definition:
mondgen.h:65
VCB
@ VCB
Definition:
mondgen.h:59
ADVICE
@ ADVICE
Definition:
mondgen.h:60
CLNTCALL
@ CLNTCALL
Definition:
mondgen.h:56
SRVRVMRES
@ SRVRVMRES
Definition:
mondgen.h:66
SRVCALL
@ SRVCALL
Definition:
mondgen.h:63
SESSION
@ SESSION
Definition:
mondgen.h:54
IOTINFO
@ IOTINFO
Definition:
mondgen.h:67
mtrue
@ mtrue
Definition:
mondgen.h:44
mfalse
@ mfalse
Definition:
mondgen.h:43
Lock
Definition:
lock.h:68
Generated by
1.9.4