2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
13 #include <afsconfig.h>
14 #include "afs/param.h"
18 #include "afs/sysincludes.h" /* Standard vendor system headers */
21 #if !defined(AFS_LINUX20_ENV) && !defined(AFS_FBSD_ENV)
23 #include <netinet/in.h>
27 #include "h/hashing.h"
29 #if !defined(AFS_HPUX110_ENV) && !defined(AFS_LINUX20_ENV) && !defined(AFS_FBSD_ENV) && !defined(AFS_DARWIN_ENV)
30 #include <netinet/in_var.h>
34 #include "afsincludes.h" /* Afs-based standard headers */
35 #include "afs/afs_stats.h" /* afs statistics */
36 #include "afs/afs_util.h"
37 #include "afs/unified_afs.h"
39 #if defined(AFS_SUN5_ENV)
41 #include <inet/common.h>
42 #include <netinet/ip6.h>
46 /* shouldn't do it this way, but for now will do */
47 #ifndef ERROR_TABLE_BASE_U
48 #define ERROR_TABLE_BASE_U (5376L)
49 #endif /* ubik error base define */
51 /* shouldn't do it this way, but for now will do */
52 #ifndef ERROR_TABLE_BASE_uae
53 #define ERROR_TABLE_BASE_uae (49733376L)
54 #endif /* unified afs error base define */
56 /* same hack for vlserver error base as for ubik error base */
57 #ifndef ERROR_TABLE_BASE_VL
58 #define ERROR_TABLE_BASE_VL (363520L)
59 #define VL_NOENT (363524L)
60 #endif /* vlserver error base define */
63 int afs_BusyWaitPeriod = 15; /**< poll period, in seconds */
65 afs_int32 hm_retry_RO = 0; /**< enable read-only hard-mount retry */
66 afs_int32 hm_retry_RW = 0; /**< enable read-write hard-mount retry */
67 afs_int32 hm_retry_int = 0; /**< hard-mount retry interval, in seconds */
69 #define VSleep(at) afs_osi_Wait((at)*1000, 0, 0)
78 * Request vldb record to determined if it has changed.
80 * \retval 0 if the vldb record for a specific volume is different from what
81 * we have cached -- perhaps the volume has moved.
82 * \retval 1 if the vldb record is the same
83 * \retval 2 if we can't tell if it's the same or not.
86 * If 0 returned, the caller will probably start over at the beginning of our
87 * list of servers for this volume and try to find one that is up. If
88 * not 0, we will probably just keep plugging with what we have
89 * cached. If we fail to contact the VL server, we should just keep
90 * trying with the information we have, rather than failing.
93 VLDB_Same(struct VenusFid *afid, struct vrequest *areq)
95 struct vrequest *treq = NULL;
96 struct afs_conn *tconn;
100 struct nvldbentry ntve;
101 struct uvldbentry utve;
105 char *bp, tbuf[CVBS]; /* biggest volume id is 2^32, ~ 4*10^9 */
106 unsigned int changed;
107 struct server *(oldhosts[NMAXNSERVERS]);
108 struct rx_connection *rxconn;
110 AFS_STATCNT(CheckVLDB);
111 afs_FinalizeReq(areq);
113 if ((i = afs_CreateReq(&treq, afs_osi_credp)))
115 v = afs_osi_Alloc(sizeof(*v));
116 osi_Assert(v != NULL);
117 tcell = afs_GetCell(afid->Cell, READ_LOCK);
118 bp = afs_cv2string(&tbuf[CVBS], afid->Fid.Volume);
120 VSleep(2); /* Better safe than sorry. */
122 afs_ConnByMHosts(tcell->cellHosts, tcell->vlport, tcell->cellNum,
123 treq, SHARED_LOCK, 0, &rxconn);
125 if ( tconn->parent->srvr->server->flags & SNO_LHOSTS) {
128 i = VL_GetEntryByNameO(rxconn, bp, &v->tve);
130 } else if (tconn->parent->srvr->server->flags & SYES_LHOSTS) {
133 i = VL_GetEntryByNameN(rxconn, bp, &v->ntve);
138 i = VL_GetEntryByNameU(rxconn, bp, &v->utve);
140 if (!(tconn->parent->srvr->server->flags & SVLSRV_UUID)) {
141 if (i == RXGEN_OPCODE) {
144 i = VL_GetEntryByNameN(rxconn, bp, &v->ntve);
146 if (i == RXGEN_OPCODE) {
148 tconn->parent->srvr->server->flags |= SNO_LHOSTS;
150 i = VL_GetEntryByNameO(rxconn, bp, &v->tve);
153 tconn->parent->srvr->server->flags |= SYES_LHOSTS;
155 tconn->parent->srvr->server->flags |= SVLSRV_UUID;
161 } while (afs_Analyze(tconn, rxconn, i, NULL, treq, -1, /* no op code for this */
162 SHARED_LOCK, tcell));
164 afs_PutCell(tcell, READ_LOCK);
165 afs_Trace2(afs_iclSetp, CM_TRACE_CHECKVLDB, ICL_TYPE_FID, &afid,
169 afs_DestroyReq(treq);
170 afs_osi_Free(v, sizeof(*v));
173 /* have info, copy into serverHost array */
175 tvp = afs_FindVolume(afid, WRITE_LOCK);
177 ObtainWriteLock(&tvp->lock, 107);
178 for (i = 0; i < NMAXNSERVERS && tvp->serverHost[i]; i++) {
179 oldhosts[i] = tvp->serverHost[i];
181 ReleaseWriteLock(&tvp->lock);
184 LockAndInstallUVolumeEntry(tvp, &v->utve, afid->Cell, tcell, treq);
185 } else if (type == 1) {
186 LockAndInstallNVolumeEntry(tvp, &v->ntve, afid->Cell);
188 LockAndInstallVolumeEntry(tvp, &v->tve, afid->Cell);
191 if (i < NMAXNSERVERS && tvp->serverHost[i]) {
194 for (--i; !changed && i >= 0; i--) {
195 if (tvp->serverHost[i] != oldhosts[i]) {
196 changed = 1; /* also happens if prefs change. big deal. */
200 tvp->states &= ~VRecheck; /* Just checked it. */
201 tvp->setupTime = osi_Time(); /* Time the vldb was checked. */
203 ReleaseWriteLock(&tvp->lock);
204 afs_PutVolume(tvp, WRITE_LOCK);
205 } else { /* can't find volume */
206 tvp = afs_GetVolume(afid, treq, WRITE_LOCK);
208 afs_PutVolume(tvp, WRITE_LOCK);
209 afs_DestroyReq(treq);
210 afs_osi_Free(v, sizeof(*v));
213 afs_DestroyReq(treq);
214 afs_osi_Free(v, sizeof(*v));
219 afs_DestroyReq(treq);
220 afs_osi_Free(v, sizeof(*v));
221 return (changed ? DIFFERENT : SAME);
226 * Mark a server as invalid for further attempts of this request only.
228 * \param[in,out] areq The request record associated with this operation.
229 * \param[in] afid The FID of the file involved in the action. This argument
230 * may be null if none was involved.
231 * \param[in,out] tsp pointer to a server struct for the server we wish to
235 * Non-zero value if further servers are available to try,
239 * This routine is typically called in situations where we believe
240 * one server out of a pool may have an error condition.
243 * The afs_Conn* routines use the list of invalidated servers to
244 * avoid reusing a server marked as invalid for this request.
247 afs_BlackListOnce(struct vrequest *areq, struct VenusFid *afid,
252 afs_int32 serversleft = 0;
255 tvp = afs_FindVolume(afid, READ_LOCK);
257 for (i = 0; i < AFS_MAXHOSTS; i++) {
258 if (tvp->serverHost[i] == tsp) {
259 areq->skipserver[i] = 1;
261 if (tvp->serverHost[i] &&
262 (tvp->serverHost[i]->addr->sa_flags &
264 areq->skipserver[i] = 1;
267 for (i = 0; i < AFS_MAXHOSTS; i++) {
268 if (tvp->serverHost[i] && areq->skipserver[i] == 0) {
273 afs_PutVolume(tvp, READ_LOCK);
282 * Clear any cached status for the target FID of a failed fileserver
285 * \param[in] afid The FID of the file involved in the action. This argument
286 * may be null if none was involved.
287 * \param[in] op which RPC we are analyzing.
288 * \param[in,out] avp A pointer to the struct volume, if we already have one.
291 * Non-zero value if the related RPC operation can be retried,
295 * This routine is called when we got a network error,
296 * and discards state if the operation was a data-mutating
300 afs_ClearStatus(struct VenusFid *afid, int op, struct volume *avp)
302 struct volume *tvp = NULL;
304 /* if it's not a write op, we have nothing to veto and shouldn't clear. */
305 if (!AFS_STATS_FS_RPCIDXES_ISWRITE(op)) {
312 tvp = afs_FindVolume(afid, READ_LOCK);
314 /* don't assume just discarding will fix if no cached volume */
317 ObtainReadLock(&afs_xvcache);
318 if ((tvc = afs_FindVCache(afid, 0, 0))) {
319 ReleaseReadLock(&afs_xvcache);
320 tvc->f.states &= ~(CStatd | CUnique);
323 ReleaseReadLock(&afs_xvcache);
326 afs_PutVolume(tvp, READ_LOCK);
329 if (AFS_STATS_FS_RPCIDXES_WRITE_RETRIABLE(op))
332 /* not retriable: we may have raced ourselves */
338 * Print the last errors from the servers for the volume on
341 * \param[in] areq The request record associated with this operation.
342 * \param[in] afid The FID of the file involved in the action. This argument
343 * may be null if none was involved.
349 * This routine is called before a hard-mount retry, to display
350 * the servers by primary address and the errors encountered.
353 afs_PrintServerErrors(struct vrequest *areq, struct VenusFid *afid)
363 tvp = afs_FindVolume(afid, READ_LOCK);
365 for (i = 0; i < AFS_MAXHOSTS; i++) {
366 if (areq->lasterror[i] && tvp->serverHost[i]) {
367 sa = tvp->serverHost[i]->addr;
369 address = ntohl(sa->sa_ip);
370 afs_warnuser("%s%d.%d.%d.%d code=%d", sep,
371 (address >> 24), (address >> 16) & 0xff,
372 (address >> 8) & 0xff, (address) & 0xff,
379 afs_PutVolume(tvp, READ_LOCK);
382 afs_warnuser("%s\n", term);
387 * Analyze the outcome of an RPC operation, taking whatever support
388 * actions are necessary.
390 * \param[in] aconn Ptr to the relevant connection on which the call was made.
391 * \param[in] rxconn Ptr to the rx_connection.
392 * \param[in] acode The return code experienced by the RPC.
393 * \param[in] fid The FID of the file involved in the action. This argument
394 * may be null if none was involved.
395 * \param[in,out] areq The request record associated with this operation.
396 * \param[in] op which RPC we are analyzing.
397 * \param[in] cellp pointer to a cell struct. Must provide either fid or cell.
400 * Non-zero value if the related RPC operation should be retried,
404 * This routine is typically called in a do-while loop, causing the
405 * embedded RPC operation to be called repeatedly if appropriate
406 * until whatever error condition (if any) is intolerable.
409 * The retry return value is used by afs_StoreAllSegments to determine
410 * if this is a temporary or permanent error.
413 afs_Analyze(struct afs_conn *aconn, struct rx_connection *rxconn,
414 afs_int32 acode, struct VenusFid *afid, struct vrequest *areq,
415 int op, afs_int32 locktype, struct cell *cellp)
420 struct volume *tvp = NULL;
421 afs_int32 shouldRetry = 0;
422 afs_int32 serversleft = 1;
423 struct afs_stats_RPCErrors *aerrP;
426 if (AFS_IS_DISCONNECTED && !AFS_IN_SYNC) {
427 /* On reconnection, act as connected. XXX: for now.... */
428 /* SXW - This may get very tired after a while. We should try and
429 * intercept all RPCs before they get here ... */
430 /*printf("afs_Analyze: disconnected\n");*/
431 afs_FinalizeReq(areq);
433 /* SXW - I suspect that this will _never_ happen - we shouldn't
434 * get a connection because we're disconnected !!!*/
435 afs_PutConn(aconn, rxconn, locktype);
440 AFS_STATCNT(afs_Analyze);
441 afs_Trace4(afs_iclSetp, CM_TRACE_ANALYZE, ICL_TYPE_INT32, op,
442 ICL_TYPE_POINTER, aconn, ICL_TYPE_INT32, acode, ICL_TYPE_LONG,
445 aerrP = (struct afs_stats_RPCErrors *)0;
447 if ((op >= 0) && (op < AFS_STATS_NUM_FS_RPC_OPS))
448 aerrP = &(afs_stats_cmfullperf.rpc.fsRPCErrors[op]);
450 afs_FinalizeReq(areq);
451 if (!aconn && areq->busyCount) { /* one RPC or more got VBUSY/VRESTARTING */
453 tvp = afs_FindVolume(afid, READ_LOCK);
455 afs_warnuser("afs: Waiting for busy volume %u (%s) in cell %s\n",
456 (afid ? afid->Fid.Volume : 0),
457 (tvp->name ? tvp->name : ""),
459 && tvp->serverHost[0]->cell) ? tvp->serverHost[0]->
460 cell->cellName : ""));
462 for (i = 0; i < AFS_MAXHOSTS; i++) {
463 if (tvp->status[i] != not_busy && tvp->status[i] != offline) {
464 tvp->status[i] = not_busy;
466 if (tvp->status[i] == not_busy)
469 afs_PutVolume(tvp, READ_LOCK);
471 afs_warnuser("afs: Waiting for busy volume %u\n",
472 (afid ? afid->Fid.Volume : 0));
475 if (areq->busyCount > 100) {
477 (aerrP->err_Volume)++;
478 areq->volumeError = VOLBUSY;
481 VSleep(afs_BusyWaitPeriod); /* poll periodically */
483 if (shouldRetry != 0)
486 return shouldRetry; /* should retry */
489 if (!aconn || !aconn->parent->srvr) {
490 if (!areq->volumeError) {
492 (aerrP->err_Network)++;
493 if (hm_retry_int && !(areq->flags & O_NONBLOCK) && /* "hard" mount */
494 ((afid && afs_IsPrimaryCellNum(afid->Cell))
495 || (cellp && afs_IsPrimaryCell(cellp)))) {
497 static int afs_vl_hm = 0;
500 afs_vl_hm = warn = 1;
504 ("afs: hard-mount waiting for a vlserver to return to service\n");
506 VSleep(hm_retry_int);
507 afs_CheckServers(1, cellp);
514 static int afs_unknown_vhm = 0;
515 int warn = 0, vp_vhm = 0;
517 tvp = afs_FindVolume(afid, READ_LOCK);
518 if (!tvp || (tvp->states & VRO)) {
519 shouldRetry = hm_retry_RO;
521 shouldRetry = hm_retry_RW;
524 /* Set 'warn' if we should afs_warnuser. Only let one
525 * caller call afs_warnuser per hm_retry_int interval per
529 if (!(tvp->states & VHardMount)) {
530 tvp->states |= VHardMount;
534 if (!afs_unknown_vhm) {
542 afs_PutVolume(tvp, READ_LOCK);
547 ("afs: hard-mount waiting for volume %u",
549 afs_PrintServerErrors(areq, afid);
552 VSleep(hm_retry_int);
553 afs_CheckServers(1, cellp);
554 /* clear the black listed servers on this request. */
555 memset(areq->skipserver, 0, sizeof(areq->skipserver));
558 tvp = afs_FindVolume(afid, READ_LOCK);
560 tvp->states &= ~VHardMount;
561 afs_PutVolume(tvp, READ_LOCK);
568 } /* if (hm_retry_int ... */
570 if (acode == RX_MSGSIZE)
573 areq->networkError = 1;
574 /* do not promote to shouldRetry if not already */
575 if (afs_ClearStatus(afid, op, NULL) == 0)
580 if (aconn) /* simply lacking aconn->server doesn't absolve this */
581 afs_PutConn(aconn, rxconn, locktype);
585 /* Find server associated with this connection. */
586 sa = aconn->parent->srvr;
588 address = ntohl(sa->sa_ip);
590 /* Before we do anything with acode, make sure we translate it back to
592 if ((acode & ~0xff) == ERROR_TABLE_BASE_uae)
593 acode = et_to_sys_error(acode);
596 /* If we previously took an error, mark this volume not busy */
597 if (areq->volumeError) {
598 tvp = afs_FindVolume(afid, READ_LOCK);
600 for (i = 0; i < AFS_MAXHOSTS; i++) {
601 if (tvp->serverHost[i] == tsp) {
602 tvp->status[i] = not_busy;
605 afs_PutVolume(tvp, READ_LOCK);
609 afs_PutConn(aconn, rxconn, locktype);
613 /* Save the last code of this server on this request. */
614 tvp = afs_FindVolume(afid, READ_LOCK);
616 for (i = 0; i < AFS_MAXHOSTS; i++) {
617 if (tvp->serverHost[i] == tsp) {
618 areq->lasterror[i] = acode;
621 afs_PutVolume(tvp, READ_LOCK);
624 #ifdef AFS_64BIT_CLIENT
627 #endif /* AFS_64BIT_CLIENT */
628 if (acode == RX_MSGSIZE) {
632 if (acode == RX_CALL_TIMEOUT || acode == VNOSERVICE) {
633 serversleft = afs_BlackListOnce(areq, afid, tsp);
635 tvp = afs_FindVolume(afid, READ_LOCK);
636 if ((serversleft == 0) && tvp &&
637 ((tvp->states & VRO) || (tvp->states & VBackup))) {
642 if (!afid || !tvp || (tvp->states & VRO))
644 else if (afs_ClearStatus(afid, op, tvp) == 0)
648 afs_PutVolume(tvp, READ_LOCK);
649 /* By doing this, we avoid ever marking a server down
650 * in an idle timeout case. That's because the server is
651 * still responding and may only be letting a single vnode
652 * time out. We otherwise risk having the server continually
653 * be marked down, then up, then down again...
657 /* If network troubles, mark server as having bogued out again. */
658 /* VRESTARTING is < 0 because of backward compatibility issues
659 * with 3.4 file servers and older cache managers */
660 if ((acode < 0) && (acode != VRESTARTING)) {
661 afs_ServerDown(sa, acode, rxconn);
662 ForceNewConnections(sa); /* multi homed clients lock:afs_xsrvAddr? */
664 (aerrP->err_Server)++;
667 if (acode == VBUSY || acode == VRESTARTING) {
668 if (acode == VBUSY) {
671 (aerrP->err_VolumeBusies)++;
675 tvp = afs_FindVolume(afid, READ_LOCK);
677 for (i = 0; i < AFS_MAXHOSTS; i++) {
678 if (tvp->serverHost[i] == tsp) {
679 tvp->status[i] = rdwr_busy; /* can't tell which yet */
680 /* to tell which, have to look at the op code. */
683 afs_PutVolume(tvp, READ_LOCK);
685 afs_warnuser("afs: Waiting for busy volume %u in cell %s (server %d.%d.%d.%d)\n",
686 (afid ? afid->Fid.Volume : 0), tsp->cell->cellName,
687 (address >> 24), (address >> 16) & 0xff,
688 (address >> 8) & 0xff, (address) & 0xff);
689 VSleep(afs_BusyWaitPeriod); /* poll periodically */
693 } else if (acode == VICETOKENDEAD
694 || (acode & ~0xff) == ERROR_TABLE_BASE_RXK) {
695 /* any rxkad error is treated as token expiration */
698 * I'm calling these errors protection errors, since they involve
699 * faulty authentication.
702 (aerrP->err_Protection)++;
704 tu = afs_FindUser(areq->uid, tsp->cell->cellNum, READ_LOCK);
706 if (acode == VICETOKENDEAD) {
707 aconn->forceConnectFS = 1;
708 } else if (acode == RXKADEXPIRED) {
709 aconn->forceConnectFS = 0; /* don't check until new tokens set */
710 aconn->parent->user->states |= UTokensBad;
711 afs_NotifyUser(tu, UTokensDropped);
713 ("afs: Tokens for user of AFS id %d for cell %s have expired (server %d.%d.%d.%d)\n",
714 tu->viceId, aconn->parent->srvr->server->cell->cellName,
715 (address >> 24), (address >> 16) & 0xff,
716 (address >> 8) & 0xff, (address) & 0xff);
718 serversleft = afs_BlackListOnce(areq, afid, tsp);
723 ("afs: Tokens for user of AFS id %d for cell %s: rxkad error=%d (server %d.%d.%d.%d)\n",
724 tu->viceId, aconn->parent->srvr->server->cell->cellName, acode,
725 (address >> 24), (address >> 16) & 0xff,
726 (address >> 8) & 0xff, (address) & 0xff);
729 areq->tokenError = 0;
730 aconn->forceConnectFS = 0; /* don't check until new tokens set */
731 aconn->parent->user->states |= UTokensBad;
732 afs_NotifyUser(tu, UTokensDropped);
734 ("afs: Tokens for user of AFS id %d for cell %s are discarded (rxkad error=%d, server %d.%d.%d.%d)\n",
735 tu->viceId, aconn->parent->srvr->server->cell->cellName, acode,
736 (address >> 24), (address >> 16) & 0xff,
737 (address >> 8) & 0xff, (address) & 0xff);
740 afs_PutUser(tu, READ_LOCK);
742 /* The else case shouldn't be possible and should probably be replaced by a panic? */
743 if (acode == VICETOKENDEAD) {
744 aconn->forceConnectFS = 1;
745 } else if (acode == RXKADEXPIRED) {
746 aconn->forceConnectFS = 0; /* don't check until new tokens set */
747 aconn->parent->user->states |= UTokensBad;
748 afs_NotifyUser(tu, UTokensDropped);
750 ("afs: Tokens for user %d for cell %s have expired (server %d.%d.%d.%d)\n",
751 areq->uid, aconn->parent->srvr->server->cell->cellName,
752 (address >> 24), (address >> 16) & 0xff,
753 (address >> 8) & 0xff, (address) & 0xff);
755 aconn->forceConnectFS = 0; /* don't check until new tokens set */
756 aconn->parent->user->states |= UTokensBad;
757 afs_NotifyUser(tu, UTokensDropped);
759 ("afs: Tokens for user %d for cell %s are discarded (rxkad error = %d, server %d.%d.%d.%d)\n",
760 areq->uid, aconn->parent->srvr->server->cell->cellName,
762 (address >> 24), (address >> 16) & 0xff,
763 (address >> 8) & 0xff, (address) & 0xff);
767 shouldRetry = 1; /* Try again (as root). */
769 /* Check for access violation. */
770 else if (acode == EACCES) {
771 /* should mark access error in non-existent per-user global structure */
773 (aerrP->err_Protection)++;
774 areq->accessError = 1;
775 if (op == AFS_STATS_FS_RPCIDX_STOREDATA)
776 areq->permWriteError = 1;
779 /* check for ubik errors; treat them like crashed servers */
780 else if (acode >= ERROR_TABLE_BASE_U && acode < ERROR_TABLE_BASE_U + 255) {
781 afs_ServerDown(sa, acode, rxconn);
783 (aerrP->err_Server)++;
784 shouldRetry = 1; /* retryable (maybe one is working) */
785 VSleep(1); /* just in case */
787 /* Check for bad volume data base / missing volume. */
788 else if (acode == VSALVAGE || acode == VOFFLINE || acode == VNOVOL
789 || acode == VMOVED) {
794 areq->volumeError = VOLMISSING;
796 (aerrP->err_Volume)++;
797 if (afid && (tcell = afs_GetCell(afid->Cell, 0))) {
798 same = VLDB_Same(afid, areq);
799 tvp = afs_FindVolume(afid, READ_LOCK);
801 for (i = 0; i < AFS_MAXHOSTS && tvp->serverHost[i]; i++) {
802 if (tvp->serverHost[i] == tsp) {
803 if (tvp->status[i] == end_not_busy)
804 tvp->status[i] = offline;
808 tvp->status[i] = not_busy; /* reset the others */
811 afs_PutVolume(tvp, READ_LOCK);
814 } else if (acode >= ERROR_TABLE_BASE_VL && acode <= ERROR_TABLE_BASE_VL + 255) { /* vlserver errors */
816 areq->volumeError = VOLMISSING;
817 } else if (acode >= 0) {
819 (aerrP->err_Other)++;
820 if (op == AFS_STATS_FS_RPCIDX_STOREDATA)
821 areq->permWriteError = 1;
822 shouldRetry = 0; /* Other random Vice error. */
823 } else if (acode == RX_MSGSIZE) { /* same meaning as EMSGSIZE... */
825 ("afs: Path MTU may have been exceeded, retrying (server %d.%d.%d.%d)\n",
826 (address >> 24), (address >> 16) & 0xff,
827 (address >> 8) & 0xff, (address) & 0xff);
829 VSleep(1); /* Just a hack for desperate times. */
831 (aerrP->err_Other)++;
832 shouldRetry = 1; /* packet was too big, please retry call */
835 if (acode < 0 && acode != RX_MSGSIZE && acode != VRESTARTING) {
836 /* If we get here, code < 0 and we have network/Server troubles.
837 * areq->networkError is not set here, since we always
838 * retry in case there is another server. However, if we find
839 * no connection (aconn == 0) we set the networkError flag.
841 afs_ServerDown(sa, acode, rxconn);
843 (aerrP->err_Server)++;
844 VSleep(1); /* Just a hack for desperate times. */
848 /* now unlock the connection and return */
849 afs_PutConn(aconn, rxconn, locktype);
850 return (shouldRetry);