Coda Distributed File System
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
11Permission to use, copy, modify and distribute this software and its
12documentation is hereby granted, provided that both the copyright
13notice and this permission notice appear in all copies of the
14software, derivative works or modified versions, and any portions
15thereof, and that both notices appear in supporting documentation, and
16that credit is given to Carnegie Mellon University in all documents
17and publicity pertaining to direct or indirect use of this code or its
18derivatives.
19
20CODA IS AN EXPERIMENTAL SOFTWARE SYSTEM AND IS KNOWN TO HAVE BUGS,
21SOME OF WHICH MAY HAVE SERIOUS CONSEQUENCES. CARNEGIE MELLON ALLOWS
22FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION. CARNEGIE MELLON
23DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER
24RESULTING DIRECTLY OR INDIRECTLY FROM THE USE OF THIS SOFTWARE OR OF
25ANY DERIVATIVE WORK.
26
27Carnegie Mellon encourages users of this software to return any
28improvements or extensions that they make, and to grant Carnegie
29Mellon 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
41enum bool
42{
44 mtrue
45};
46
47typedef char *CONDITION;
48typedef struct Lock MUTEX;
49
50#define SIGCHAR 32
51
53{
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_
char * CONDITION
Definition: mondgen.h:47
dataClass
Definition: mondgen.h:53
@ OVERFLOW
Definition: mondgen.h:62
@ SUBTREE
Definition: mondgen.h:69
@ SRVRES
Definition: mondgen.h:64
@ CLNTRVM
Definition: mondgen.h:58
@ dataClass_last_tag
Definition: mondgen.h:72
@ RWSSTAT
Definition: mondgen.h:71
@ CLNTMCALL
Definition: mondgen.h:57
@ REPAIR
Definition: mondgen.h:70
@ COMM
Definition: mondgen.h:55
@ MINICACHE
Definition: mondgen.h:61
@ IOTSTAT
Definition: mondgen.h:68
@ SRVOVRFLW
Definition: mondgen.h:65
@ VCB
Definition: mondgen.h:59
@ ADVICE
Definition: mondgen.h:60
@ CLNTCALL
Definition: mondgen.h:56
@ SRVRVMRES
Definition: mondgen.h:66
@ SRVCALL
Definition: mondgen.h:63
@ SESSION
Definition: mondgen.h:54
@ IOTINFO
Definition: mondgen.h:67
@ mtrue
Definition: mondgen.h:44
@ mfalse
Definition: mondgen.h:43
Definition: lock.h:68