* transactions: this is the code executed on the other servers when a
* sync site is executing a write transaction.
*/
-SDISK_Begin(rxcall, atid)
+afs_int32 SDISK_Begin(rxcall, atid)
register struct rx_call *rxcall;
struct ubik_tid *atid;
{
urecovery_CheckTid(atid);
if (ubik_currentTrans) {
/* If the thread is not waiting for lock - ok to end it */
+#if !defined(UBIK_PAUSE)
if (ubik_currentTrans->locktype != LOCKWAIT) {
+#endif /* UBIK_PAUSE */
udisk_end(ubik_currentTrans);
+#if !defined(UBIK_PAUSE)
}
+#endif /* UBIK_PAUSE */
ubik_currentTrans = (struct ubik_trans *) 0;
}
code = udisk_begin(ubik_dbase, UBIK_WRITETRANS, &ubik_currentTrans);
return code;}
-SDISK_Commit(rxcall, atid)
+afs_int32 SDISK_Commit(rxcall, atid)
register struct rx_call *rxcall;
struct ubik_tid *atid;
{
return code;
}
-SDISK_ReleaseLocks(rxcall, atid)
+afs_int32 SDISK_ReleaseLocks(rxcall, atid)
register struct rx_call *rxcall;
struct ubik_tid *atid;
{
}
/* If the thread is not waiting for lock - ok to end it */
+#if !defined(UBIK_PAUSE)
if (ubik_currentTrans->locktype != LOCKWAIT) {
- udisk_end(ubik_currentTrans);
- }
+#endif /* UBIK_PAUSE */
+ udisk_end(ubik_currentTrans);
+#if !defined(UBIK_PAUSE)
+ }
+#endif /* UBIK_PAUSE */
ubik_currentTrans = (struct ubik_trans *) 0;
DBRELE(dbase);
return 0;
}
-SDISK_Abort(rxcall, atid)
+afs_int32 SDISK_Abort(rxcall, atid)
register struct rx_call *rxcall;
struct ubik_tid *atid;
{
code = udisk_abort(ubik_currentTrans);
/* If the thread is not waiting for lock - ok to end it */
+#if !defined(UBIK_PAUSE)
if (ubik_currentTrans->locktype != LOCKWAIT) {
- udisk_end(ubik_currentTrans);
- }
+#endif /* UBIK_PAUSE */
+ udisk_end(ubik_currentTrans);
+#if !defined(UBIK_PAUSE)
+ }
+#endif /* UBIK_PAUSE */
ubik_currentTrans = (struct ubik_trans *) 0;
DBRELE(dbase);
return code;
}
-SDISK_Lock(rxcall, atid, afile, apos, alen, atype)
+afs_int32 SDISK_Lock(rxcall, atid, afile, apos, alen, atype)
register struct rx_call *rxcall;
struct ubik_tid *atid;
afs_int32 afile, apos, alen, atype; /* apos and alen are not used */
}
/* Write a vector of data */
-SDISK_WriteV(rxcall, atid, io_vector, io_buffer)
+afs_int32 SDISK_WriteV(rxcall, atid, io_vector, io_buffer)
register struct rx_call *rxcall;
struct ubik_tid *atid;
iovec_wrt *io_vector;
return code;
}
-SDISK_Write(rxcall, atid, afile, apos, adata)
+afs_int32 SDISK_Write(rxcall, atid, afile, apos, adata)
register struct rx_call *rxcall;
struct ubik_tid *atid;
afs_int32 afile, apos;
return code;
}
-SDISK_Truncate(rxcall, atid, afile, alen)
+afs_int32 SDISK_Truncate(rxcall, atid, afile, alen)
register struct rx_call *rxcall;
struct ubik_tid *atid;
afs_int32 afile;
return code;
}
-SDISK_GetVersion(rxcall, aversion)
+afs_int32 SDISK_GetVersion(rxcall, aversion)
register struct rx_call *rxcall;
register struct ubik_version *aversion;
{
return 0;
}
-SDISK_GetFile(rxcall, file, version)
+afs_int32 SDISK_GetFile(rxcall, file, version)
register struct rx_call *rxcall;
register afs_int32 file;
struct ubik_version *version;
return code;
}
-SDISK_SendFile(rxcall, file, length, avers)
+afs_int32 SDISK_SendFile(rxcall, file, length, avers)
register struct rx_call *rxcall;
afs_int32 file;
afs_int32 length;
}
-SDISK_Probe(rxcall)
+afs_int32 SDISK_Probe(rxcall)
register struct rx_call *rxcall;
{
return 0;
* Send back my addresses to caller of this RPC
* Returns zero on success, else 1.
*/
-SDISK_UpdateInterfaceAddr(rxcall, inAddr, outAddr)
+afs_int32 SDISK_UpdateInterfaceAddr(rxcall, inAddr, outAddr)
register struct rx_call *rxcall;
UbikInterfaceAddr *inAddr, *outAddr;
{
for ( i=0; i < UBIK_MAX_INTERFACE_ADDR && inAddr->hostAddr[i]; i++)
ubik_print("%s ", afs_inet_ntoa(htonl(inAddr->hostAddr[i])));
ubik_print("\n");
+ fflush(stdout); fflush(stderr);
printServerInfo();
return UBADHOST;
}
ubik_print("\n");
}
-SDISK_SetVersion(rxcall, atid, oldversionp, newversionp)
+afs_int32 SDISK_SetVersion(rxcall, atid, oldversionp, newversionp)
struct rx_call *rxcall;
struct ubik_tid *atid;
struct ubik_version *oldversionp;