#include <stdio.h>
#include <sys/time.h>
#include <rpc2/rpc2.h>
#include <rpc2/se.h>
#include <callback.h>
#include <vice.h>
#include <olist.h>
#include <rec_olist.h>
#include <ohash.h>
#include <rec_ohash.h>
#include <inconsist.h>
#include "refcounted.h"
#include "fso.h"
#include "venusrecov.h"
#include "venus.private.h"
#include "vproc.h"
Go to the source code of this file.
|
void | ConnPrint () |
|
void | ConnPrint (FILE *) |
|
void | ConnPrint (int) |
|
void | ServerPrint () |
|
void | ServerPrint (FILE *) |
|
void | CommInit () |
|
void | Conn_Wait () |
|
void | Conn_Signal () |
|
void | PutConn (connent **) |
|
void | Srvr_Wait () EXCLUDES_TRANSACTION |
|
void | Srvr_Signal () |
|
srvent * | FindServer (struct in_addr *host) |
|
srvent * | FindServerByCBCid (RPC2_Handle) |
|
srvent * | GetServer (struct in_addr *host, RealmId realmid) |
|
void | PutServer (srvent **) |
|
void | ProbeServers (int) EXCLUDES_TRANSACTION |
|
void | DoProbes (int, struct in_addr *) EXCLUDES_TRANSACTION |
|
void | MultiBind (int, struct in_addr *, connent **) EXCLUDES_TRANSACTION |
|
void | MultiProbe (int, RPC2_Handle *) EXCLUDES_TRANSACTION |
|
long | HandleProbe (int, RPC2_Handle Handles[], long, long,...) |
|
void | ServerProbe (long *=0, long *=0) EXCLUDES_TRANSACTION |
|
void | DownServers (char *, unsigned int *) |
|
void | DownServers (int, struct in_addr *, char *, unsigned int *) |
|
void | CheckServerBW (long) |
|
int | FailDisconnect (int, struct in_addr *) |
|
int | FailReconnect (int, struct in_addr *) |
|
void | PROD_Init (void) |
|
void | ProbeDaemon (void) EXCLUDES_TRANSACTION |
|
◆ ASYNCCOP1
◆ ASYNCCOP2
◆ COMM_YIELD
◆ END_COMMSYNC
Value: { \
CommQueue.count[vp->lwpri]--; \
LOG(10, ("CommQueue: remove pri %d count = %d\n", vp->lwpri, \
}
struct CommQueueStruct CommQueue
Definition: comm.cc:95
char sync
Definition: comm.h:373
int count[LWP_MAX_PRIORITY+1]
Definition: comm.h:372
vproc * VprocSelf()
Definition: vproc.cc:161
◆ MULTI_END_MESSAGE
#define MULTI_END_MESSAGE |
( |
|
viceop | ) |
|
Value:
#define END_COMMSYNC()
Definition: comm.h:412
char name[RPCOPSTATNAMELEN]
Definition: venusstats.h:99
RPCOpStat RPCOps[srvOPARRAYSIZE]
Definition: venusstats.h:111
RPCOpStatistics RPCOpStats
Definition: venusutil.cc:88
◆ MULTI_RECORD_STATS
#define MULTI_RECORD_STATS |
( |
|
viceop | ) |
|
Value: if (code < 0) \
RPCOpStats.RPCOps[viceop].Mrpc_retries++; \
else if (code > 0) \
RPCOpStats.RPCOps[viceop].Mbad++; \
else \
RPCOpStats.RPCOps[viceop].Mgood++;
◆ MULTI_START_MESSAGE
#define MULTI_START_MESSAGE |
( |
|
viceop | ) |
|
Value:
#define START_COMMSYNC()
Definition: comm.h:388
◆ PIGGYCOP2
◆ START_COMMSYNC
Value: { \
while (pri > vp->lwpri) { \
LOG(0, ("WAITING(CommQueue) pri = %d, for %d at pri %d\n", \
START_TIMING(); \
END_TIMING(); \
LOG(0, ("WAIT OVER, elapsed = %3.1f\n", elapsed)); \
} else { \
pri--; \
} \
} \
} \
CommQueue.count[vp->lwpri]++; \
LOG(10, ("CommQueue: insert pri %d count = %d\n", vp->lwpri, \
}
#define COMM_YIELD
Definition: comm.h:387
#define LWP_MAX_PRIORITY
Definition: lwp.h:83
◆ UNI_END_MESSAGE
#define UNI_END_MESSAGE |
( |
|
viceop | ) |
|
◆ UNI_RECORD_STATS
#define UNI_RECORD_STATS |
( |
|
viceop | ) |
|
Value: if (code < 0) \
RPCOpStats.RPCOps[viceop].rpc_retries++; \
else if (code > 0) \
RPCOpStats.RPCOps[viceop].bad++; \
else \
RPCOpStats.RPCOps[viceop].good++;
◆ UNI_START_MESSAGE
#define UNI_START_MESSAGE |
( |
|
viceop | ) |
|
◆ VENUS_MAXBSLEN
◆ ProbeSlaveTask
Enumerator |
---|
ProbeUpServers | |
ProbeDownServers | |
BindToServer | |
◆ CheckServerBW()
void CheckServerBW |
( |
long |
curr_time | ) |
|
◆ CommInit()
◆ Conn_Signal()
◆ Conn_Wait()
◆ ConnPrint() [1/3]
◆ ConnPrint() [2/3]
void ConnPrint |
( |
FILE * |
fp | ) |
|
◆ ConnPrint() [3/3]
◆ DoProbes()
void DoProbes |
( |
int |
HowMany, |
|
|
struct in_addr * |
Hosts |
|
) |
| |
◆ DownServers() [1/2]
void DownServers |
( |
char * |
buf, |
|
|
unsigned int * |
bufsize |
|
) |
| |
◆ DownServers() [2/2]
void DownServers |
( |
int |
nservers, |
|
|
struct in_addr * |
hostids, |
|
|
char * |
buf, |
|
|
unsigned int * |
bufsize |
|
) |
| |
◆ FailDisconnect()
int FailDisconnect |
( |
int |
nservers, |
|
|
struct in_addr * |
hostids |
|
) |
| |
◆ FailReconnect()
int FailReconnect |
( |
int |
nservers, |
|
|
struct in_addr * |
hostids |
|
) |
| |
◆ FindServer()
srvent * FindServer |
( |
struct in_addr * |
host | ) |
|
◆ FindServerByCBCid()
◆ GetServer()
srvent * GetServer |
( |
struct in_addr * |
host, |
|
|
RealmId |
realmid |
|
) |
| |
◆ HandleProbe()
long HandleProbe |
( |
int |
HowMany, |
|
|
RPC2_Handle |
Handles[], |
|
|
long |
offset, |
|
|
long |
rpcval, |
|
|
|
... |
|
) |
| |
◆ MultiBind()
void MultiBind |
( |
int |
HowMany, |
|
|
struct in_addr * |
Hosts, |
|
|
connent ** |
Connections |
|
) |
| |
◆ MultiProbe()
◆ ProbeDaemon()
void ProbeDaemon |
( |
void |
| ) |
|
◆ ProbeServers()
void ProbeServers |
( |
int |
Up | ) |
|
◆ PROD_Init()
◆ PutConn()
◆ PutServer()
void PutServer |
( |
srvent ** |
spp | ) |
|
◆ ServerPrint() [1/2]
◆ ServerPrint() [2/2]
void ServerPrint |
( |
FILE * |
fp | ) |
|
◆ ServerProbe()
void ServerProbe |
( |
long * |
lastupp = 0 , |
|
|
long * |
lastdownp = 0 |
|
) |
| |
◆ Srvr_Signal()
◆ Srvr_Wait()
◆ CommQueue
◆ COPModes
◆ DFLT_AP
◆ DFLT_MT
◆ DFLT_PS
const int DFLT_PS = (1024 + 60 ) |
◆ DFLT_RT
◆ DFLT_SA
◆ DFLT_ST
◆ DFLT_TO
◆ DFLT_WCS
const int DFLT_WCS = 1800 |
◆ DFLT_WCT
const unsigned int DFLT_WCT = 50000 |
◆ DFLT_WS
◆ INIT_BW
const unsigned int INIT_BW = 10000000 |
◆ mrpc2_timeflag
◆ myHostName
◆ rpc2_retries
◆ rpc2_timeflag
◆ rpc2_timeout
◆ sftp_ackpoint
◆ sftp_packetsize
◆ sftp_sendahead
◆ sftp_windowsize
◆ UNSET_AP
◆ UNSET_MT
◆ UNSET_PS
◆ UNSET_RT
◆ UNSET_SA
◆ UNSET_ST
◆ UNSET_TO
◆ UNSET_WCS
◆ UNSET_WCT
const unsigned int UNSET_WCT = 0 |
◆ UNSET_WS