OpenAFS
OpenAFS distributed network file system
/cygdrive/c/src/openafs/openafs.git/repo/src/ubik/remote.c File Reference

routines for handling requests remotely-submitted by the sync site. More...

#include <afsconfig.h>
#include <afs/param.h>
#include <roken.h>
#include <assert.h>
#include <afs/opr.h>
#include <lock.h>
#include <rx/xdr.h>
#include <rx/rx.h>
#include <afs/afsutil.h>
#include "ubik.h"
#include "ubik_int.h"

Functions

afs_int32 SDISK_Begin (struct rx_call *rxcall, struct ubik_tid *atid)
afs_int32 SDISK_Commit (struct rx_call *rxcall, struct ubik_tid *atid)
afs_int32 SDISK_ReleaseLocks (struct rx_call *rxcall, struct ubik_tid *atid)
afs_int32 SDISK_Abort (struct rx_call *rxcall, struct ubik_tid *atid)
afs_int32 SDISK_Lock (struct rx_call *rxcall, struct ubik_tid *atid, afs_int32 afile, afs_int32 apos, afs_int32 alen, afs_int32 atype)
afs_int32 SDISK_WriteV (struct rx_call *rxcall, struct ubik_tid *atid, iovec_wrt *io_vector, iovec_buf *io_buffer)
 Write a vector of data.
afs_int32 SDISK_Write (struct rx_call *rxcall, struct ubik_tid *atid, afs_int32 afile, afs_int32 apos, bulkdata *adata)
afs_int32 SDISK_Truncate (struct rx_call *rxcall, struct ubik_tid *atid, afs_int32 afile, afs_int32 alen)
afs_int32 SDISK_GetVersion (struct rx_call *rxcall, struct ubik_version *aversion)
afs_int32 SDISK_GetFile (struct rx_call *rxcall, afs_int32 file, struct ubik_version *version)
afs_int32 SDISK_SendFile (struct rx_call *rxcall, afs_int32 file, afs_int32 length, struct ubik_version *avers)
afs_int32 SDISK_Probe (struct rx_call *rxcall)
afs_int32 SDISK_UpdateInterfaceAddr (struct rx_call *rxcall, UbikInterfaceAddr *inAddr, UbikInterfaceAddr *outAddr)
 Update remote machines addresses in my server list.
afs_int32 SDISK_SetVersion (struct rx_call *rxcall, struct ubik_tid *atid, struct ubik_version *oldversionp, struct ubik_version *newversionp)

Variables

struct ubik_transubik_currentTrans = 0

Detailed Description

routines for handling requests remotely-submitted by the sync site.

These are only write transactions (we don't propagate read trans), and there is at most one write transaction extant at any one time.


Function Documentation

afs_int32 SDISK_UpdateInterfaceAddr ( struct rx_call rxcall,
UbikInterfaceAddr inAddr,
UbikInterfaceAddr outAddr 
)

Update remote machines addresses in my server list.

Send back my addresses to caller of this RPC

Returns:
zero on success, else 1.
 All Data Structures Files Functions Variables