#include "../afs/afsincludes.h" /* Afs-based standard headers */
#include "../afs/afs_stats.h" /* afs statistics */
#include "../afs/afs_util.h"
-#include "../afs/afs_prototypes.h"
#if defined(AFS_SUN56_ENV)
#include <inet/led.h>
int afs_BusyWaitPeriod = 15; /* poll every 15 seconds */
-
afs_int32 hm_retry_RO=0; /* don't wait */
afs_int32 hm_retry_RW=0; /* don't wait */
afs_int32 hm_retry_int=0; /* don't wait */
-void afs_CopyError(afrom, ato)
- register struct vrequest *afrom;
- register struct vrequest *ato;
-
+void afs_CopyError(register struct vrequest *afrom, register struct vrequest *ato)
{
AFS_STATCNT(afs_CopyError);
if (!afrom->initd)
if (afrom->permWriteError)
ato->permWriteError = 1;
-} /*afs_CopyError*/
-
-
-void afs_FinalizeReq(areq)
- register struct vrequest *areq;
+}
+void afs_FinalizeReq(register struct vrequest *areq)
{
AFS_STATCNT(afs_FinalizeReq);
if (areq->initd)
areq->permWriteError = 0;
areq->initd = 1;
-} /*afs_FinalizeReq*/
-
-
-afs_CheckCode(acode, areq, where)
- afs_int32 acode;
- struct vrequest *areq;
- int where;
+}
+int afs_CheckCode(afs_int32 acode, struct vrequest *areq, int where)
{
AFS_STATCNT(afs_CheckCode);
if (acode) {
#define DIFFERENT 0
#define SAME 1
#define DUNNO 2
-static int VLDB_Same (afid, areq)
- struct VenusFid *afid;
- struct vrequest *areq;
+static int VLDB_Same (struct VenusFid *afid, struct vrequest *areq)
{
struct vrequest treq;
struct conn *tconn;
AFS_STATCNT(CheckVLDB);
afs_FinalizeReq(areq);
- if (i = afs_InitReq(&treq, &afs_osi_cred)) return DUNNO;
+ if ((i = afs_InitReq(&treq, &afs_osi_cred))) return DUNNO;
tcell = afs_GetCell(afid->Cell, READ_LOCK);
bp = afs_cv2string(&tbuf[CVBS], afid->Fid.Volume);
do {
}
} else
i = -1;
- } while (afs_Analyze(tconn, i, (struct VenusFid *) 0, &treq,
+ } while (afs_Analyze(tconn, i, NULL, &treq,
-1, /* no op code for this */
SHARED_LOCK, tcell));
* The retry return value is used by afs_StoreAllSegments to determine
* if this is a temporary or permanent error.
*------------------------------------------------------------------------*/
-int afs_Analyze(aconn, acode, afid, areq, op, locktype, cellp)
- register struct conn *aconn;
- afs_int32 acode;
- register struct vrequest *areq;
- struct VenusFid *afid;
- int op;
- afs_int32 locktype;
- struct cell *cellp;
-{ /*afs_Analyze*/
-
+int afs_Analyze(register struct conn *aconn, afs_int32 acode,
+ struct VenusFid *afid, register struct vrequest *areq, int op,
+ afs_int32 locktype, struct cell *cellp)
+{
afs_int32 i, code;
struct srvAddr *sa;
struct server *tsp;