printf("%s: My home cell is '%s'\n", rn, afs_LclCellName);
}
- /*
- * Set the primary cell name.
- */
- call_syscall(AFSOP_SET_THISCELL, (long)afs_LclCellName, 0, 0, 0, 0);
-
if ((logfd = fopen(fullpn_AFSLogFile, "r+")) == 0) {
if (afsd_verbose)
printf("%s: Creating '%s'\n", rn, fullpn_AFSLogFile);
sprintf(fullpn_VFile, "%s/V", cacheBaseDir);
vFileNumber = fullpn_VFile + strlen(fullpn_VFile);
- /*
- * Start the RX listener.
- */
- if (afsd_debug)
- printf("%s: Calling AFSOP_RXLISTENER_DAEMON\n", rn);
- fork_syscall(AFSCALL_CALL, AFSOP_RXLISTENER_DAEMON, FALSE, FALSE, FALSE);
-
- /*
- * Start the RX event handler.
- */
- if (afsd_debug)
- printf("%s: Calling AFSOP_RXEVENT_DAEMON\n", rn);
- fork_syscall(AFSCALL_CALL, AFSOP_RXEVENT_DAEMON, FALSE);
-
- /*
- * Set up all the kernel processes needed for AFS.
- */
-
/* initialize AFS callback interface */
{
/* parse multihomed address files */
}
}
+ /*
+ * Start the RX listener.
+ */
+ if (afsd_debug)
+ printf("%s: Calling AFSOP_RXLISTENER_DAEMON\n", rn);
+ fork_syscall(AFSCALL_CALL, AFSOP_RXLISTENER_DAEMON, FALSE, FALSE, FALSE);
+
if (afsd_verbose)
printf("%s: Forking rx callback listener.\n", rn);
/* Child */
preallocs = cacheStatEntries + 50;
fork_syscall(AFSCALL_CALL, AFSOP_START_RXCALLBACK, preallocs);
+ /*
+ * Start the RX event handler.
+ */
+ if (afsd_debug)
+ printf("%s: Calling AFSOP_RXEVENT_DAEMON\n", rn);
+ fork_syscall(AFSCALL_CALL, AFSOP_RXEVENT_DAEMON, FALSE);
+
+ /*
+ * Set up all the kernel processes needed for AFS.
+ */
+
if (afsd_verbose)
printf("%s: Initializing AFS daemon.\n", rn);
call_syscall(AFSCALL_CALL, AFSOP_BASIC_INIT, 1, 0, 0, 0);
afsconf_CellApply(afs_cdir, ConfigCell, NULL);
afsconf_CellAliasApply(afs_cdir, ConfigCellAlias, NULL);
+ /*
+ * Set the primary cell name.
+ */
+ call_syscall(AFSCALL_CALL, AFSOP_SET_THISCELL, (long)afs_LclCellName, 0, 0, 0);
+
if (afsd_verbose)
printf("%s: Forking AFS daemon.\n", rn);
fork_syscall(AFSCALL_CALL, AFSOP_START_AFS);
rc = lpioctl(0, _VICEIOCTL(8), &iob, 0);
#endif
if (rc < 0) {
- usr_assert(errno == EDOM || errno == ENOSYS);
+ usr_assert(errno == EDOM || errno == ENOSYS || errno == ERANGE);
break;
}
#endif
#endif
-#ifdef AFS_SGI65_ENV
-#define gop_lookupname(fnamep,segflg,followlink,compvpp) \
- lookupname((fnamep),(segflg),(followlink),NULL,(compvpp),\
- NULL)
-#else
-#define gop_lookupname(fnamep,segflg,followlink,compvpp) \
- lookupname((fnamep),(segflg),(followlink),NULL,(compvpp))
-#endif
-
/*
* In IRIX 6.5 we cannot have DEBUG turned on since certain
* system-defined structures are a different size with DEBUG on, the