4 * Copyright (c) 1998 - 2002 Kungliga Tekniska Högskolan
5 * (Royal Institute of Technology, Stockholm, Sweden).
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
19 * 3. Neither the name of the Institute nor the names of its contributors
20 * may be used to endorse or promote products derived from this software
21 * without specific prior written permission.
23 * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
24 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
43 %#include <fs_errors.h>
45 error-function conv_to_arla_errno
56 const UBIK_MAX_INTERFACE_ADDR = 256; /* max interfaces per server */
58 typedef net_tid net_version;
70 net_version syncVersion;
76 long writeLockedPages;
77 net_version localVersion;
93 net_version remoteVersion;
97 afs_int32 altAddr[255]; /*alternate addresses:host byte */
98 /*this is actually UBIK_MAX_INTERFACE_ADDR-1*/
105 const VOTE_BEACON = 10000;
106 const VOTE_DEBUG = 10001;
107 const VOTE_SDEBUG = 10002;
108 const VOTE_GETSYNCSITE = 10003;
112 const UNOQUORUM = 5376;
113 const UNOTSYNC = 5377;
114 const UNHOSTS = 5378;
115 const UIOERROR = 5379;
116 const UINTERNAL = 5380;
119 const UBADLOCK = 5383;
120 const UBADLOG = 5384;
121 const UBADHOST = 5385;
122 const UBADTYPE = 5386;
123 const UTWOENDS = 5387;
125 const UNOSERVERS = 5389;
128 const UBADFAM = 5392;
129 const UBADCELL = 5393;
130 const UBADSECGRP = 5394;
131 const UBADGROUP = 5395;
132 const UBADUUID = 5396;
134 const UNOTMEMBER = 5398;
135 const UNBINDINGS = 5399;
136 const UBADPRINNAME = 5400;
138 const UDEADLOCK = 5402;
139 const UEXCEPTION = 5403;
140 const UTPQFAIL = 5404;
141 const USKEWED = 5405;
142 const UNOLOCK = 5406;
143 const UNOACCESS = 5407;
145 const UBADPATH = 5409;
147 const UREINITIALIZE = 5411;
151 Beacon (IN long state,
153 IN net_version *Version,
154 IN net_tid *tid) multi = VOTE_BEACON;
156 Debug (OUT ubik_debug *db) = VOTE_DEBUG;
158 SDebug (IN long which, OUT ubik_sdebug *db) = VOTE_SDEBUG;
160 GetSyncSite (OUT long *site) = VOTE_GETSYNCSITE;