mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
STABLE14-rename-conn-to-afs-conn-20090121
LICENSE IPL10
FIXES 124116
based on patch from daleg@elemental.org. rename to avoid conflict with opensolar
is
(cherry picked from commit a268678326
)
This commit is contained in:
parent
5965d38655
commit
90898db4b1
@ -45,7 +45,7 @@ afs_create(OSI_VC_DECL(adp), char *aname, struct vattr *attrs,
|
||||
afs_int32 origCBs, origZaps, finalZaps;
|
||||
struct vrequest treq;
|
||||
register afs_int32 code;
|
||||
register struct conn *tc;
|
||||
register struct afs_conn *tc;
|
||||
struct VenusFid newFid;
|
||||
struct AFSStoreStatus InStatus;
|
||||
struct AFSFetchStatus OutFidStatus, OutDirStatus;
|
||||
|
@ -41,7 +41,7 @@ afs_mkdir(OSI_VC_DECL(adp), char *aname, struct vattr *attrs,
|
||||
{
|
||||
struct vrequest treq;
|
||||
register afs_int32 code;
|
||||
register struct conn *tc;
|
||||
register struct afs_conn *tc;
|
||||
struct VenusFid newFid;
|
||||
register struct dcache *tdc;
|
||||
afs_size_t offset, len;
|
||||
@ -176,7 +176,7 @@ afs_rmdir(OSI_VC_DECL(adp), char *aname, struct AFS_UCRED *acred)
|
||||
register struct dcache *tdc;
|
||||
register struct vcache *tvc = NULL;
|
||||
register afs_int32 code;
|
||||
register struct conn *tc;
|
||||
register struct afs_conn *tc;
|
||||
afs_size_t offset, len;
|
||||
struct AFSFetchStatus OutDirStatus;
|
||||
struct AFSVolSync tsync;
|
||||
|
@ -225,7 +225,7 @@ int
|
||||
HandleFlock(register struct vcache *avc, int acom, struct vrequest *areq,
|
||||
pid_t clid, int onlymine)
|
||||
{
|
||||
struct conn *tc;
|
||||
struct afs_conn *tc;
|
||||
struct SimpleLocks *slp, *tlp, **slpp;
|
||||
afs_int32 code;
|
||||
struct AFSVolSync tsync;
|
||||
@ -809,7 +809,7 @@ HandleGetLock(register struct vcache *avc, register struct AFS_FLOCK *af,
|
||||
static int
|
||||
GetFlockCount(struct vcache *avc, struct vrequest *areq)
|
||||
{
|
||||
register struct conn *tc;
|
||||
register struct afs_conn *tc;
|
||||
register afs_int32 code;
|
||||
struct AFSFetchStatus OutStatus;
|
||||
struct AFSCallBack CallBack;
|
||||
|
@ -45,7 +45,7 @@ afs_link(avc, OSI_VC_ARG(adp), aname, acred)
|
||||
struct vrequest treq;
|
||||
register struct dcache *tdc;
|
||||
register afs_int32 code;
|
||||
register struct conn *tc;
|
||||
register struct afs_conn *tc;
|
||||
afs_size_t offset, len;
|
||||
struct AFSFetchStatus OutFidStatus, OutDirStatus;
|
||||
struct AFSVolSync tsync;
|
||||
|
@ -549,7 +549,7 @@ afs_DoBulkStat(struct vcache *adp, long dirCookie, struct vrequest *areqp)
|
||||
AFSCBFids fidParm; /* file ID parm for bulk stat */
|
||||
AFSBulkStats statParm; /* stat info parm for bulk stat */
|
||||
int fidIndex = 0; /* which file were stating */
|
||||
struct conn *tcp = 0; /* conn for call */
|
||||
struct afs_conn *tcp = 0; /* conn for call */
|
||||
AFSCBs cbParm; /* callback parm for bulk stat */
|
||||
struct server *hostp = 0; /* host we got callback from */
|
||||
long startTime; /* time we started the call,
|
||||
|
@ -105,7 +105,7 @@ afsremove(register struct vcache *adp, register struct dcache *tdc,
|
||||
struct vrequest *treqp)
|
||||
{
|
||||
register afs_int32 code;
|
||||
register struct conn *tc;
|
||||
register struct afs_conn *tc;
|
||||
struct AFSFetchStatus OutDirStatus;
|
||||
struct AFSVolSync tsync;
|
||||
XSTATS_DECLS;
|
||||
|
@ -36,7 +36,7 @@ int
|
||||
afsrename(struct vcache *aodp, char *aname1, struct vcache *andp,
|
||||
char *aname2, struct AFS_UCRED *acred, struct vrequest *areq)
|
||||
{
|
||||
register struct conn *tc;
|
||||
register struct afs_conn *tc;
|
||||
register afs_int32 code;
|
||||
afs_int32 returnCode;
|
||||
int oneDir, doLocally;
|
||||
|
@ -52,7 +52,7 @@ int afs_symlink
|
||||
afs_uint32 now = 0;
|
||||
struct vrequest treq;
|
||||
afs_int32 code;
|
||||
struct conn *tc;
|
||||
struct afs_conn *tc;
|
||||
struct VenusFid newFid;
|
||||
struct dcache *tdc;
|
||||
afs_size_t offset, len;
|
||||
|
@ -320,9 +320,9 @@ struct unixuser {
|
||||
struct afs_exporter *exporter; /* more info about the exporter for the remote user */
|
||||
};
|
||||
|
||||
struct conn {
|
||||
struct afs_conn {
|
||||
/* Per-connection block. */
|
||||
struct conn *next; /* Next dude same server. */
|
||||
struct afs_conn *next; /* Next dude same server. */
|
||||
struct unixuser *user; /* user validated with respect to. */
|
||||
struct rx_connection *id; /* RPC connid. */
|
||||
struct srvAddr *srvr; /* server associated with this conn */
|
||||
@ -354,7 +354,7 @@ struct srvAddr {
|
||||
struct srvAddr *next_bkt; /* next item in hash bucket */
|
||||
struct srvAddr *next_sa; /* another interface on same host */
|
||||
struct server *server; /* back to parent */
|
||||
struct conn *conns; /* All user connections to this server */
|
||||
struct afs_conn *conns; /* All user connections to this server */
|
||||
afs_int32 sa_ip; /* Host addr in network byte order */
|
||||
u_short sa_iprank; /* indiv ip address priority */
|
||||
u_short sa_portal; /* port addr in network byte order */
|
||||
|
@ -323,7 +323,7 @@ static int
|
||||
VLDB_Same(struct VenusFid *afid, struct vrequest *areq)
|
||||
{
|
||||
struct vrequest treq;
|
||||
struct conn *tconn;
|
||||
struct afs_conn *tconn;
|
||||
int i, type = 0;
|
||||
union {
|
||||
struct vldbentry tve;
|
||||
@ -537,7 +537,7 @@ afs_BlackListOnce(struct vrequest *areq, struct VenusFid *afid,
|
||||
* if this is a temporary or permanent error.
|
||||
*------------------------------------------------------------------------*/
|
||||
int
|
||||
afs_Analyze(register struct conn *aconn, afs_int32 acode,
|
||||
afs_Analyze(register struct afs_conn *aconn, afs_int32 acode,
|
||||
struct VenusFid *afid, register struct vrequest *areq, int op,
|
||||
afs_int32 locktype, struct cell *cellp)
|
||||
{
|
||||
|
@ -52,13 +52,13 @@ afs_int32 cryptall = 0; /* encrypt all communications */
|
||||
|
||||
|
||||
unsigned int VNOSERVERS = 0;
|
||||
struct conn *
|
||||
struct afs_conn *
|
||||
afs_Conn(register struct VenusFid *afid, register struct vrequest *areq,
|
||||
afs_int32 locktype)
|
||||
{
|
||||
u_short fsport = AFS_FSPORT;
|
||||
struct volume *tv;
|
||||
struct conn *tconn = NULL;
|
||||
struct afs_conn *tconn = NULL;
|
||||
struct srvAddr *lowp = NULL;
|
||||
struct unixuser *tu;
|
||||
int notbusy;
|
||||
@ -132,12 +132,12 @@ afs_Conn(register struct VenusFid *afid, register struct vrequest *areq,
|
||||
} /*afs_Conn */
|
||||
|
||||
|
||||
struct conn *
|
||||
struct afs_conn *
|
||||
afs_ConnBySA(struct srvAddr *sap, unsigned short aport, afs_int32 acell,
|
||||
struct unixuser *tu, int force_if_down, afs_int32 create,
|
||||
afs_int32 locktype)
|
||||
{
|
||||
struct conn *tc = 0;
|
||||
struct afs_conn *tc = 0;
|
||||
struct rx_securityClass *csec; /*Security class object */
|
||||
int isec; /*Security index */
|
||||
int service;
|
||||
@ -167,8 +167,8 @@ afs_ConnBySA(struct srvAddr *sap, unsigned short aport, afs_int32 acell,
|
||||
* gets set, marking the time of its ``birth''.
|
||||
*/
|
||||
UpgradeSToWLock(&afs_xconn, 37);
|
||||
tc = (struct conn *)afs_osi_Alloc(sizeof(struct conn));
|
||||
memset((char *)tc, 0, sizeof(struct conn));
|
||||
tc = (struct afs_conn *)afs_osi_Alloc(sizeof(struct afs_conn));
|
||||
memset((char *)tc, 0, sizeof(struct afs_conn));
|
||||
|
||||
tc->user = tu;
|
||||
tc->port = aport;
|
||||
@ -260,12 +260,12 @@ afs_ConnBySA(struct srvAddr *sap, unsigned short aport, afs_int32 acell,
|
||||
* Having force... true and UTokensBad true simultaneously means that the tokens
|
||||
* went bad and we're supposed to create a new, unauthenticated, connection.
|
||||
*/
|
||||
struct conn *
|
||||
struct afs_conn *
|
||||
afs_ConnByHost(struct server *aserver, unsigned short aport, afs_int32 acell,
|
||||
struct vrequest *areq, int aforce, afs_int32 locktype)
|
||||
{
|
||||
struct unixuser *tu;
|
||||
struct conn *tc = 0;
|
||||
struct afs_conn *tc = 0;
|
||||
struct srvAddr *sa = 0;
|
||||
|
||||
AFS_STATCNT(afs_ConnByHost);
|
||||
@ -301,13 +301,13 @@ afs_ConnByHost(struct server *aserver, unsigned short aport, afs_int32 acell,
|
||||
} /*afs_ConnByHost */
|
||||
|
||||
|
||||
struct conn *
|
||||
struct afs_conn *
|
||||
afs_ConnByMHosts(struct server *ahosts[], unsigned short aport,
|
||||
afs_int32 acell, register struct vrequest *areq,
|
||||
afs_int32 locktype)
|
||||
{
|
||||
register afs_int32 i;
|
||||
register struct conn *tconn;
|
||||
register struct afs_conn *tconn;
|
||||
register struct server *ts;
|
||||
|
||||
/* try to find any connection from the set */
|
||||
@ -326,7 +326,7 @@ afs_ConnByMHosts(struct server *ahosts[], unsigned short aport,
|
||||
|
||||
|
||||
void
|
||||
afs_PutConn(register struct conn *ac, afs_int32 locktype)
|
||||
afs_PutConn(register struct afs_conn *ac, afs_int32 locktype)
|
||||
{
|
||||
AFS_STATCNT(afs_PutConn);
|
||||
ac->refCount--;
|
||||
@ -340,7 +340,7 @@ connections in this case
|
||||
void
|
||||
ForceNewConnections(struct srvAddr *sap)
|
||||
{
|
||||
struct conn *tc = 0;
|
||||
struct afs_conn *tc = 0;
|
||||
|
||||
if (!sap)
|
||||
return; /* defensive check */
|
||||
|
@ -1514,7 +1514,7 @@ afs_GetDCache(register struct vcache *avc, afs_size_t abyte,
|
||||
struct tlocal1 *tsmall = 0;
|
||||
register struct dcache *tdc;
|
||||
register struct osi_file *file;
|
||||
register struct conn *tc;
|
||||
register struct afs_conn *tc;
|
||||
int downDCount = 0;
|
||||
struct server *newCallback = NULL;
|
||||
char setNewCallback;
|
||||
|
@ -767,7 +767,7 @@ shutdown_AFS(void)
|
||||
*/
|
||||
{
|
||||
struct server *ts, *nts;
|
||||
struct conn *tc, *ntc;
|
||||
struct afs_conn *tc, *ntc;
|
||||
register struct afs_cbr *tcbrp, *tbrp;
|
||||
|
||||
for (i = 0; i < NSERVERS; i++) {
|
||||
@ -784,7 +784,7 @@ shutdown_AFS(void)
|
||||
AFS_GUNLOCK();
|
||||
rx_DestroyConnection(tc->id);
|
||||
AFS_GLOCK();
|
||||
afs_osi_Free(tc, sizeof(struct conn));
|
||||
afs_osi_Free(tc, sizeof(struct afs_conn));
|
||||
tc = ntc;
|
||||
}
|
||||
}
|
||||
|
@ -1215,7 +1215,7 @@ DECL_PIOCTL(PGetFID)
|
||||
DECL_PIOCTL(PSetAcl)
|
||||
{
|
||||
register afs_int32 code;
|
||||
struct conn *tconn;
|
||||
struct afs_conn *tconn;
|
||||
struct AFSOpaque acl;
|
||||
struct AFSVolSync tsync;
|
||||
struct AFSFetchStatus OutStatus;
|
||||
@ -1303,7 +1303,7 @@ DECL_PIOCTL(PGetAcl)
|
||||
struct AFSVolSync tsync;
|
||||
struct AFSFetchStatus OutStatus;
|
||||
afs_int32 code;
|
||||
struct conn *tconn;
|
||||
struct afs_conn *tconn;
|
||||
struct AFSFid Fid;
|
||||
XSTATS_DECLS;
|
||||
|
||||
@ -1546,7 +1546,7 @@ DECL_PIOCTL(PGetVolumeStatus)
|
||||
char volName[32];
|
||||
char *offLineMsg = afs_osi_Alloc(256);
|
||||
char *motd = afs_osi_Alloc(256);
|
||||
register struct conn *tc;
|
||||
register struct afs_conn *tc;
|
||||
register afs_int32 code = 0;
|
||||
struct AFSFetchVolumeStatus volstat;
|
||||
register char *cp;
|
||||
@ -1601,7 +1601,7 @@ DECL_PIOCTL(PSetVolumeStatus)
|
||||
char volName[32];
|
||||
char *offLineMsg = afs_osi_Alloc(256);
|
||||
char *motd = afs_osi_Alloc(256);
|
||||
register struct conn *tc;
|
||||
register struct afs_conn *tc;
|
||||
register afs_int32 code = 0;
|
||||
struct AFSFetchVolumeStatus volstat;
|
||||
struct AFSStoreVolumeStatus storeStat;
|
||||
@ -2040,7 +2040,7 @@ DECL_PIOCTL(PCheckAuth)
|
||||
{
|
||||
int i;
|
||||
struct srvAddr *sa;
|
||||
struct conn *tc;
|
||||
struct afs_conn *tc;
|
||||
struct unixuser *tu;
|
||||
afs_int32 retValue;
|
||||
|
||||
@ -2206,7 +2206,7 @@ DECL_PIOCTL(PGetCacheSize)
|
||||
|
||||
DECL_PIOCTL(PRemoveCallBack)
|
||||
{
|
||||
register struct conn *tc;
|
||||
register struct afs_conn *tc;
|
||||
register afs_int32 code = 0;
|
||||
struct AFSCallBack CallBacks_Array[1];
|
||||
struct AFSCBFids theFids;
|
||||
@ -2399,7 +2399,7 @@ DECL_PIOCTL(PRemoveMount)
|
||||
char *bufp;
|
||||
struct sysname_info sysState;
|
||||
afs_size_t offset, len;
|
||||
register struct conn *tc;
|
||||
register struct afs_conn *tc;
|
||||
register struct dcache *tdc;
|
||||
register struct vcache *tvc;
|
||||
struct AFSFetchStatus OutDirStatus;
|
||||
@ -3723,7 +3723,7 @@ DECL_PIOCTL(PPrefetchFromTape)
|
||||
{
|
||||
register afs_int32 code, code1;
|
||||
afs_int32 bytes;
|
||||
struct conn *tc;
|
||||
struct afs_conn *tc;
|
||||
struct rx_call *tcall;
|
||||
struct AFSVolSync tsync;
|
||||
struct AFSFetchStatus OutStatus;
|
||||
@ -3788,7 +3788,7 @@ DECL_PIOCTL(PPrefetchFromTape)
|
||||
DECL_PIOCTL(PFsCmd)
|
||||
{
|
||||
register afs_int32 code;
|
||||
struct conn *tc;
|
||||
struct afs_conn *tc;
|
||||
struct vcache *tvc;
|
||||
struct FsCmdInputs *Inputs;
|
||||
struct FsCmdOutputs *Outputs;
|
||||
@ -3903,7 +3903,7 @@ DECL_PIOCTL(PCallBackAddr)
|
||||
int srvAddrCount;
|
||||
struct server *ts;
|
||||
struct srvAddr *sa;
|
||||
struct conn *tc;
|
||||
struct afs_conn *tc;
|
||||
afs_int32 i, j;
|
||||
struct unixuser *tu;
|
||||
struct srvAddr **addrs;
|
||||
|
@ -13,7 +13,7 @@
|
||||
/* afs_analyze.c */
|
||||
extern void init_et_to_sys_error(void);
|
||||
extern void afs_FinalizeReq(struct vrequest *areq);
|
||||
extern int afs_Analyze(register struct conn *aconn, afs_int32 acode,
|
||||
extern int afs_Analyze(register struct afs_conn *aconn, afs_int32 acode,
|
||||
struct VenusFid *afid, register struct vrequest *areq,
|
||||
int op, afs_int32 locktype, struct cell *cellp);
|
||||
extern int afs_CheckCode(afs_int32 acode, struct vrequest *areq, int where);
|
||||
@ -245,22 +245,22 @@ extern struct cell *afs_GetRealCellByIndex(register afs_int32 cellindex,
|
||||
extern afs_int32 cryptall;
|
||||
extern afs_rwlock_t afs_xinterface;
|
||||
extern afs_rwlock_t afs_xconn;
|
||||
extern struct conn *afs_Conn(register struct VenusFid *afid,
|
||||
extern struct afs_conn *afs_Conn(register struct VenusFid *afid,
|
||||
register struct vrequest *areq,
|
||||
afs_int32 locktype);
|
||||
extern struct conn *afs_ConnBySA(struct srvAddr *sap, unsigned short aport,
|
||||
extern struct afs_conn *afs_ConnBySA(struct srvAddr *sap, unsigned short aport,
|
||||
afs_int32 acell, struct unixuser *tu,
|
||||
int force_if_down, afs_int32 create,
|
||||
afs_int32 locktype);
|
||||
extern struct conn *afs_ConnByMHosts(struct server *ahosts[],
|
||||
extern struct afs_conn *afs_ConnByMHosts(struct server *ahosts[],
|
||||
unsigned short aport, afs_int32 acell,
|
||||
register struct vrequest *areq,
|
||||
afs_int32 locktype);
|
||||
extern struct conn *afs_ConnByHost(struct server *aserver,
|
||||
extern struct afs_conn *afs_ConnByHost(struct server *aserver,
|
||||
unsigned short aport, afs_int32 acell,
|
||||
struct vrequest *areq, int aforce,
|
||||
afs_int32 locktype);
|
||||
extern void afs_PutConn(register struct conn *ac, afs_int32 locktype);
|
||||
extern void afs_PutConn(register struct afs_conn *ac, afs_int32 locktype);
|
||||
extern void ForceNewConnections(struct srvAddr *sap);
|
||||
|
||||
|
||||
|
@ -40,7 +40,7 @@ afs_uint32 afs_stampValue = 0;
|
||||
int
|
||||
afs_StoreMini(register struct vcache *avc, struct vrequest *areq)
|
||||
{
|
||||
register struct conn *tc;
|
||||
register struct afs_conn *tc;
|
||||
struct AFSStoreStatus InStatus;
|
||||
struct AFSFetchStatus OutStatus;
|
||||
struct AFSVolSync tsync;
|
||||
@ -305,7 +305,7 @@ afs_StoreAllSegments(register struct vcache *avc, struct vrequest *areq,
|
||||
int nomore;
|
||||
unsigned int first = 0;
|
||||
int *shouldwake;
|
||||
struct conn *tc;
|
||||
struct afs_conn *tc;
|
||||
struct osi_file *tfile;
|
||||
struct rx_call *tcall;
|
||||
XSTATS_DECLS;
|
||||
|
@ -288,7 +288,7 @@ static void
|
||||
CheckVLServer(register struct srvAddr *sa, struct vrequest *areq)
|
||||
{
|
||||
register struct server *aserver = sa->server;
|
||||
register struct conn *tc;
|
||||
register struct afs_conn *tc;
|
||||
register afs_int32 code;
|
||||
|
||||
AFS_STATCNT(CheckVLServer);
|
||||
@ -531,7 +531,7 @@ afs_CheckServers(int adown, struct cell *acellp)
|
||||
struct vrequest treq;
|
||||
struct server *ts;
|
||||
struct srvAddr *sa;
|
||||
struct conn *tc;
|
||||
struct afs_conn *tc;
|
||||
afs_int32 i, j;
|
||||
afs_int32 code;
|
||||
afs_int32 start, end = 0, delta;
|
||||
@ -540,14 +540,14 @@ afs_CheckServers(int adown, struct cell *acellp)
|
||||
char tbuffer[CVBS];
|
||||
int srvAddrCount;
|
||||
struct srvAddr **addrs;
|
||||
struct conn **conns;
|
||||
struct afs_conn **conns;
|
||||
int nconns;
|
||||
struct rx_connection **rxconns;
|
||||
afs_int32 *conntimer, *deltas, *results;
|
||||
|
||||
AFS_STATCNT(afs_CheckServers);
|
||||
|
||||
conns = (struct conn **)0;
|
||||
conns = (struct afs_conn **)0;
|
||||
rxconns = (struct rx_connection **) 0;
|
||||
conntimer = 0;
|
||||
nconns = 0;
|
||||
@ -577,7 +577,7 @@ afs_CheckServers(int adown, struct cell *acellp)
|
||||
ReleaseReadLock(&afs_xsrvAddr);
|
||||
ReleaseReadLock(&afs_xserver);
|
||||
|
||||
conns = (struct conn **)afs_osi_Alloc(j * sizeof(struct conn *));
|
||||
conns = (struct afs_conn **)afs_osi_Alloc(j * sizeof(struct afs_conn *));
|
||||
rxconns = (struct rx_connection **)afs_osi_Alloc(j * sizeof(struct rx_connection *));
|
||||
conntimer = (afs_int32 *)afs_osi_Alloc(j * sizeof (afs_int32));
|
||||
deltas = (afs_int32 *)afs_osi_Alloc(j * sizeof (afs_int32));
|
||||
@ -745,7 +745,7 @@ afs_CheckServers(int adown, struct cell *acellp)
|
||||
}
|
||||
|
||||
afs_osi_Free(addrs, srvAddrCount * sizeof(*addrs));
|
||||
afs_osi_Free(conns, j * sizeof(struct conn *));
|
||||
afs_osi_Free(conns, j * sizeof(struct afs_conn *));
|
||||
afs_osi_Free(rxconns, j * sizeof(struct rx_connection *));
|
||||
afs_osi_Free(conntimer, j * sizeof(afs_int32));
|
||||
afs_osi_Free(deltas, j * sizeof(afs_int32));
|
||||
|
@ -64,7 +64,7 @@ RemoveUserConns(register struct unixuser *au)
|
||||
register int i;
|
||||
register struct server *ts;
|
||||
register struct srvAddr *sa;
|
||||
register struct conn *tc, **lc;
|
||||
register struct afs_conn *tc, **lc;
|
||||
|
||||
AFS_STATCNT(RemoveUserConns);
|
||||
for (i = 0; i < NSERVERS; i++) {
|
||||
@ -77,7 +77,7 @@ RemoveUserConns(register struct unixuser *au)
|
||||
AFS_GUNLOCK();
|
||||
rx_DestroyConnection(tc->id);
|
||||
AFS_GLOCK();
|
||||
afs_osi_Free(tc, sizeof(struct conn));
|
||||
afs_osi_Free(tc, sizeof(struct afs_conn));
|
||||
break; /* at most one instance per server */
|
||||
} /*Found unreferenced connection for user */
|
||||
} /*For each connection on the server */
|
||||
@ -232,7 +232,7 @@ afs_ResetUserConns(register struct unixuser *auser)
|
||||
{
|
||||
int i;
|
||||
struct srvAddr *sa;
|
||||
struct conn *tc;
|
||||
struct afs_conn *tc;
|
||||
|
||||
AFS_STATCNT(afs_ResetUserConns);
|
||||
ObtainReadLock(&afs_xsrvAddr);
|
||||
|
@ -302,7 +302,7 @@ afs_CheckLocks(void)
|
||||
{
|
||||
struct srvAddr *sa;
|
||||
struct server *ts;
|
||||
struct conn *tc;
|
||||
struct afs_conn *tc;
|
||||
for (i = 0; i < NSERVERS; i++) {
|
||||
for (ts = afs_servers[i]; ts; ts = ts->next) {
|
||||
if (ts->flags & SRVR_ISDOWN)
|
||||
|
@ -396,7 +396,7 @@ afs_FlushVCBs(afs_int32 lockit)
|
||||
struct server *tsp;
|
||||
int i;
|
||||
struct vrequest treq;
|
||||
struct conn *tc;
|
||||
struct afs_conn *tc;
|
||||
int safety1, safety2, safety3;
|
||||
XSTATS_DECLS;
|
||||
if ((code = afs_InitReq(&treq, afs_osi_credp)))
|
||||
@ -1226,7 +1226,7 @@ afs_FlushActiveVcaches(register afs_int32 doflocks)
|
||||
{
|
||||
register struct vcache *tvc;
|
||||
register int i;
|
||||
register struct conn *tc;
|
||||
register struct afs_conn *tc;
|
||||
register afs_int32 code;
|
||||
register struct AFS_UCRED *cred = NULL;
|
||||
struct vrequest treq, ureq;
|
||||
@ -1553,7 +1553,7 @@ afs_WriteVCache(register struct vcache *avc,
|
||||
struct vrequest *areq)
|
||||
{
|
||||
afs_int32 code;
|
||||
struct conn *tc;
|
||||
struct afs_conn *tc;
|
||||
struct AFSFetchStatus OutStatus;
|
||||
struct AFSVolSync tsync;
|
||||
XSTATS_DECLS;
|
||||
@ -1712,7 +1712,7 @@ afs_RemoteLookup(register struct VenusFid *afid, struct vrequest *areq,
|
||||
{
|
||||
afs_int32 code;
|
||||
afs_uint32 start;
|
||||
register struct conn *tc;
|
||||
register struct afs_conn *tc;
|
||||
struct AFSFetchStatus OutDirStatus;
|
||||
XSTATS_DECLS;
|
||||
if (!name)
|
||||
@ -2412,7 +2412,7 @@ afs_FetchStatus(struct vcache * avc, struct VenusFid * afid,
|
||||
{
|
||||
int code;
|
||||
afs_uint32 start = 0;
|
||||
register struct conn *tc;
|
||||
register struct afs_conn *tc;
|
||||
struct AFSCallBack CallBack;
|
||||
struct AFSVolSync tsync;
|
||||
struct volume *volp;
|
||||
@ -2509,7 +2509,7 @@ afs_FetchStatus(struct vcache * avc, struct VenusFid * afid,
|
||||
void
|
||||
afs_StuffVcache(register struct VenusFid *afid,
|
||||
struct AFSFetchStatus *OutStatus,
|
||||
struct AFSCallBack *CallBack, register struct conn *tc,
|
||||
struct AFSCallBack *CallBack, register struct afs_conn *tc,
|
||||
struct vrequest *areq)
|
||||
{
|
||||
register afs_int32 code, i, newvcache = 0;
|
||||
|
@ -615,7 +615,7 @@ afs_NewVolumeByName(char *aname, afs_int32 acell, int agood,
|
||||
struct uvldbentry *utve;
|
||||
struct cell *tcell;
|
||||
char *tbuffer, *ve;
|
||||
struct conn *tconn;
|
||||
struct afs_conn *tconn;
|
||||
struct vrequest treq;
|
||||
|
||||
if (strlen(aname) > VL_MAXNAMELEN) /* Invalid volume name */
|
||||
@ -911,7 +911,7 @@ InstallUVolumeEntry(struct volume *av, struct uvldbentry *ve, int acell,
|
||||
struct cell *tcell, struct vrequest *areq)
|
||||
{
|
||||
register struct server *ts;
|
||||
struct conn *tconn;
|
||||
struct afs_conn *tconn;
|
||||
struct cell *cellp;
|
||||
register int i, j;
|
||||
afs_uint32 serverid;
|
||||
|
@ -429,7 +429,7 @@ struct htaccess_result {
|
||||
};
|
||||
|
||||
|
||||
typedef struct conn_rec conn_rec;
|
||||
typedef struct afs_conn_rec conn_rec;
|
||||
typedef struct server_rec server_rec;
|
||||
typedef struct request_rec request_rec;
|
||||
typedef struct listen_rec listen_rec;
|
||||
@ -553,7 +553,7 @@ struct request_rec {
|
||||
/* Things which are per connection
|
||||
*/
|
||||
|
||||
struct conn_rec {
|
||||
struct afs_conn_rec {
|
||||
|
||||
pool *pool;
|
||||
server_rec *server;
|
||||
|
@ -565,7 +565,7 @@ extern "C" {
|
||||
const struct htaccess_result *next;
|
||||
};
|
||||
|
||||
typedef struct conn_rec conn_rec;
|
||||
typedef struct afs_conn_rec conn_rec;
|
||||
typedef struct server_rec server_rec;
|
||||
typedef struct request_rec request_rec;
|
||||
typedef struct listen_rec listen_rec;
|
||||
@ -718,7 +718,7 @@ extern "C" {
|
||||
/* Things which are per connection
|
||||
*/
|
||||
|
||||
struct conn_rec {
|
||||
struct afs_conn_rec {
|
||||
|
||||
ap_pool *pool;
|
||||
server_rec *server;
|
||||
|
@ -622,7 +622,7 @@ extern "C" {
|
||||
const struct htaccess_result *next;
|
||||
};
|
||||
|
||||
typedef struct conn_rec conn_rec;
|
||||
typedef struct afs_conn_rec conn_rec;
|
||||
typedef struct server_rec server_rec;
|
||||
typedef struct request_rec request_rec;
|
||||
typedef struct listen_rec listen_rec;
|
||||
@ -784,7 +784,7 @@ extern "C" {
|
||||
/* Things which are per connection
|
||||
*/
|
||||
|
||||
struct conn_rec {
|
||||
struct afs_conn_rec {
|
||||
|
||||
ap_pool *pool;
|
||||
server_rec *server;
|
||||
|
@ -2005,10 +2005,10 @@ print_allocs(pnt)
|
||||
T += j;
|
||||
printf("%20s:\t%8d bytes\t[%d servers/%d bytes each]\n", "Server package",
|
||||
j, i, sizeof(struct server));
|
||||
j = (Nconns * sizeof(struct conn));
|
||||
j = (Nconns * sizeof(struct afs_conn));
|
||||
T += j;
|
||||
printf("%20s:\t%8d bytes\t[%d conns/%d bytes each]\n",
|
||||
"Connection package", j, Nconns, sizeof(struct conn));
|
||||
"Connection package", j, Nconns, sizeof(struct afs_conn));
|
||||
|
||||
i = (AFS_NCBRS * sizeof(struct afs_cbr)) * (j =
|
||||
afs_cmperfstats.
|
||||
@ -2669,12 +2669,12 @@ void
|
||||
print_conns(kmem, srv, conns, Con, pnt)
|
||||
int kmem, Con, pnt;
|
||||
struct srvAddr *srv;
|
||||
struct conn *conns;
|
||||
struct afs_conn *conns;
|
||||
{
|
||||
struct conn *cep, ce, *centry = &ce;
|
||||
struct afs_conn *cep, ce, *centry = &ce;
|
||||
int i = 1;
|
||||
|
||||
cep = (struct conn *)conns;
|
||||
cep = (struct afs_conn *)conns;
|
||||
if (pnt && Con != 2) {
|
||||
if (cep)
|
||||
printf("\tRPC connections for server %lx:\n", srv);
|
||||
@ -2693,7 +2693,7 @@ print_conns(kmem, srv, conns, Con, pnt)
|
||||
void
|
||||
print_conn(kmem, conns, ptr, pnt)
|
||||
int kmem, pnt;
|
||||
struct conn *conns, *ptr;
|
||||
struct afs_conn *conns, *ptr;
|
||||
{
|
||||
if (!pnt)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user