Coda Distributed File System
coda_globals.h
Go to the documentation of this file.
1/* BLURB gpl
2
3 Coda File System
4 Release 6
5
6 Copyright (c) 1987-2003 Carnegie Mellon University
7 Additional copyrights listed below
8
9This code is distributed "AS IS" without warranty of any kind under
10the terms of the GNU General Public Licence Version 2, as shown in the
11file LICENSE. The technical and financial contributors to Coda are
12listed in the file CREDITS.
13
14 Additional copyrights
15 none currently
16
17#*/
18
19/*
20 * coda_globals.h -- header file for the CODA file server.
21 */
22
23#ifndef _CODA_GLOBALS_H_
24#define _CODA_GLOBALS_H_ 1
25
26/*
27 * System Constant(s)
28 */
29
30/* Maximum number of volumes in recoverable storage (in any partitions) */
31#define MAXVOLS 1024 /* make this a power of 2 */
32
33/* size of large and small vnode free lists */
34#define LARGEFREESIZE MAXVOLS / 8
35#define SMALLFREESIZE MAXVOLS / 2
36
37/* incremental growth of large and small vnode arrays */
38#define LARGEGROWSIZE 128
39#define SMALLGROWSIZE 256
40
41/*
42 * Recoverable Object Declarations
43 */
44typedef int bool_t;
45
47 /* flag to determine whether or not initialization is required */
49
50 /* Array of headers for all volumes on this server */
52
53 /* Free list for VnodeDiskObject structures; prevents excessive */
54 /* malloc/free calls */
57
58 /* pointer to last index in free list containing available */
59 /* vnodediskdata object */
62
63 /* MaxVolId: Maximum volume id allocated on this server */
64 VolumeId MaxVolId;
65
68};
69
71#define SRV_RVM(name) \
72 (((struct camlib_recoverable_segment *)(camlibRecoverableSegment))->name)
73
74#endif /* _CODA_GLOBALS_H_ */
#define MAXVOLS
Definition: coda_globals.h:31
#define LARGEFREESIZE
Definition: coda_globals.h:34
#define SMALLFREESIZE
Definition: coda_globals.h:35
int bool_t
Definition: coda_globals.h:44
struct camlib_recoverable_segment * camlibRecoverableSegment
Definition: norton-setup.cc:54
Definition: cvnode.h:98
Definition: camprivate.h:42
Definition: coda_globals.h:46
short LargeVnodeIndex
Definition: coda_globals.h:61
VnodeDiskObject * SmallVnodeFreeList[SMALLFREESIZE]
Definition: coda_globals.h:55
bool_t already_initialized
Definition: coda_globals.h:48
short SmallVnodeIndex
Definition: coda_globals.h:60
VolumeId MaxVolId
Definition: coda_globals.h:64
VnodeDiskObject * LargeVnodeFreeList[LARGEFREESIZE]
Definition: coda_globals.h:56
int camlibDummy
Definition: coda_globals.h:67
struct VolHead VolumeList[MAXVOLS]
Definition: coda_globals.h:51
long Reserved[MAXVOLS]
Definition: coda_globals.h:66