/*
- * (C) COPYRIGHT IBM CORPORATION 1987, 1988
- * LICENSED MATERIALS - PROPERTY OF IBM
+ * Copyright 2000, International Business Machines Corporation and others.
+ * All Rights Reserved.
+ *
+ * This software has been released under the terms of the IBM Public
+ * License. For details, see the LICENSE file in the top-level source
+ * directory or online at http://www.openafs.org/dl/license10.html
*/
prefix S
afs_int32 session;
};
-struct net_version {
+struct ubik_version {
afs_int32 epoch;
afs_int32 counter;
};
-struct net_tid {
+struct ubik_tid {
afs_int32 epoch;
afs_int32 counter;
};
afs_int32 lowestTime; /* time we last chose lowestHost */
afs_int32 syncHost; /* sync site we've heard from last (even if we didn't vote) */
afs_int32 syncTime; /* time of above */
- struct net_version syncVersion; /* sync site's claimed db version */
- struct net_tid syncTid; /* sync site's claimed tid */
+ struct ubik_version syncVersion; /* sync site's claimed db version */
+ struct ubik_tid syncTid; /* sync site's claimed tid */
/* variables from beacon module */
afs_int32 amSyncSite; /* do I think I'm the sync site */
/* variables from disk module */
afs_int32 lockedPages; /* count of read-locked pages */
afs_int32 writeLockedPages; /* count of write-locked pages */
- struct net_version localVersion;
+ struct ubik_version localVersion;
afs_int32 activeWrite; /* is there an active write transaction with this as sync site */
afs_int32 tidCounter; /* tid counter field from dbase, or 0 if no write trans. */
afs_int32 lastVoteTime; /* time last vote received */
afs_int32 lastBeaconSent; /* time last beacon sent */
afs_int32 lastVote; /* was last vote yes? */
- struct net_version remoteVersion;
+ struct ubik_version remoteVersion;
afs_int32 currentDB; /* is current DB up to date? */
afs_int32 beaconSinceDown; /* beacon sent since last noticed up? */
afs_int32 up; /* is site up */
afs_int32 lowestTime; /* time we last chose lowestHost */
afs_int32 syncHost; /* sync site we've heard from last (even if we didn't vote) */
afs_int32 syncTime; /* time of above */
- struct net_version syncVersion; /* sync site's claimed db version */
- struct net_tid syncTid; /* sync site's claimed tid */
+ struct ubik_version syncVersion; /* sync site's claimed db version */
+ struct ubik_tid syncTid; /* sync site's claimed tid */
/* variables from beacon module */
afs_int32 amSyncSite; /* do I think I'm the sync site */
/* variables from disk module */
afs_int32 lockedPages; /* count of read-locked pages */
afs_int32 writeLockedPages; /* count of write-locked pages */
- struct net_version localVersion;
+ struct ubik_version localVersion;
afs_int32 activeWrite; /* is there an active write transaction with this as sync site */
afs_int32 tidCounter; /* tid counter field from dbase, or 0 if no write trans. */
afs_int32 lastVoteTime; /* time last vote received */
afs_int32 lastBeaconSent; /* time last beacon sent */
afs_int32 lastVote; /* was last vote yes? */
- struct net_version remoteVersion;
+ struct ubik_version remoteVersion;
afs_int32 currentDB; /* is current DB up to date? */
afs_int32 beaconSinceDown; /* beacon sent since last noticed up? */
afs_int32 up; /* is site up */
#define VOTE_GETSYNCSITE 10003
#define VOTE_DEBUG 10004
#define VOTE_SDEBUG 10005
+#define VOTE_XDEBUG 10006
+#define VOTE_XSDEBUG 10007
/* Vote package interface calls */
Beacon (IN afs_int32 state,
afs_int32 voteStart,
- net_version *Version,
- net_tid *tid) multi = VOTE_BEACON;
+ ubik_version *Version,
+ ubik_tid *tid) multi = VOTE_BEACON;
DebugOld (OUT ubik_debug_old *db) = VOTE_DEBUG_OLD;
SDebug (IN afs_int32 which,
OUT ubik_sdebug *db) = VOTE_SDEBUG;
+XDebug (OUT ubik_debug *db,
+ OUT afs_int32 *isClone) = VOTE_XDEBUG;
+
+XSDebug (IN afs_int32 which,
+ OUT ubik_sdebug *db,
+ OUT afs_int32 *isClone) = VOTE_XSDEBUG;
+
/* This package handles calls used to pass writes, begins and ends to other servers */
package DISK_
statindex 12
#define DISK_COMMIT 20001
#define DISK_LOCK 20002
#define DISK_WRITE 20003
-#define DISK_GETVERSION 20004
+#define DISK_GETVERSION 20004
#define DISK_GETFILE 20005
#define DISK_SENDFILE 20006
#define DISK_ABORT 20007
#define DISK_RELEASELOCKS 20008
-#define DISK_TRUNCATE 20009
+#define DISK_TRUNCATE 20009
#define DISK_PROBE 20010
#define DISK_WRITEV 20011
#define DISK_INTERFACEADDR 20012
/* Disk package interface calls - the order of
* these declarations is important.
*/
-Begin (IN net_tid *tid) = DISK_BEGIN;
+Begin (IN ubik_tid *tid) = DISK_BEGIN;
-Commit (IN net_tid *tid) = DISK_COMMIT;
+Commit (IN ubik_tid *tid) = DISK_COMMIT;
-Lock (IN net_tid *tid,
+Lock (IN ubik_tid *tid,
afs_int32 file,
afs_int32 position,
afs_int32 length,
afs_int32 type) = DISK_LOCK;
-Write (IN net_tid *tid,
+Write (IN ubik_tid *tid,
afs_int32 file,
afs_int32 position,
bulkdata *data) = DISK_WRITE;
-GetVersion (OUT net_version *Version) = DISK_GETVERSION;
+GetVersion (OUT ubik_version *Version) = DISK_GETVERSION;
GetFile (IN afs_int32 file,
- OUT net_version *Version) split = DISK_GETFILE;
+ OUT ubik_version *Version) split = DISK_GETFILE;
SendFile (IN afs_int32 file,
afs_int32 length,
- net_version *Version) split = DISK_SENDFILE ;
+ ubik_version *Version) split = DISK_SENDFILE ;
-Abort (IN net_tid *tid) = DISK_ABORT;
+Abort (IN ubik_tid *tid) = DISK_ABORT;
-ReleaseLocks (IN net_tid *tid) = DISK_RELEASELOCKS;
+ReleaseLocks (IN ubik_tid *tid) = DISK_RELEASELOCKS;
-Truncate (IN net_tid *tid,
+Truncate (IN ubik_tid *tid,
afs_int32 file,
afs_int32 length) = DISK_TRUNCATE;
Probe () multi = DISK_PROBE;
-WriteV (IN net_tid *tid,
+WriteV (IN ubik_tid *tid,
iovec_wrt *io_vector,
iovec_buf *io_buffer) = DISK_WRITEV;
UpdateInterfaceAddr(IN UbikInterfaceAddr* inAddr,
OUT UbikInterfaceAddr* outAddr) multi = DISK_INTERFACEADDR;
-SetVersion (IN net_tid *tid,
- IN net_version *OldVersion,
- IN net_version *NewVersion) = DISK_SETVERSION;
+SetVersion (IN ubik_tid *tid,
+ IN ubik_version *OldVersion,
+ IN ubik_version *NewVersion) = DISK_SETVERSION;