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
12 * Implementation of the AFS FileServer probe facility.
14 *------------------------------------------------------------------------*/
16 #include <afsconfig.h>
17 #include <afs/param.h>
23 #include "fsprobe.h" /*Interface for this module */
24 #include <lwp.h> /*Lightweight process package */
25 #include <afs/cellconfig.h>
26 #include <afs/afsint.h>
27 #include <afs/afsutil.h>
28 #include <afs/volser.h>
29 #include <afs/volser_prototypes.h>
31 #define FSINT_COMMON_XG
32 #include <afs/afscbint.h>
34 #define LWP_STACK_SIZE (16 * 1024)
39 int fsprobe_numServers; /*Num servers connected */
40 struct fsprobe_ConnectionInfo *fsprobe_ConnInfo; /*Ptr to connection array */
41 struct fsprobe_ProbeResults fsprobe_Results; /*Latest probe results */
42 int fsprobe_ProbeFreqInSecs; /*Probe freq. in seconds */
47 static int fsprobe_initflag = 0; /*Was init routine called? */
48 static int fsprobe_debug = 0; /*Debugging output enabled? */
49 static int (*fsprobe_Handler) (void); /*Probe handler routine */
50 static PROCESS probeLWP_ID; /*Probe LWP process ID */
51 static int fsprobe_statsBytes; /*Num bytes in stats block */
52 static int fsprobe_probeOKBytes; /*Num bytes in probeOK block */
55 * We have to pass a port to Rx to start up our callback listener
56 * service, but 7001 is already taken up by the Cache Manager. So,
59 #define FSPROBE_CBPORT 7101
62 /*------------------------------------------------------------------------
63 * [private] fsprobe_CleanupInit
66 * Set up for recovery after an error in initialization (i.e.,
67 * during a call to fsprobe_Init.
74 * Error value otherwise.
77 * This routine is private to the module.
80 * Zeros out basic data structures.
81 *------------------------------------------------------------------------*/
84 fsprobe_CleanupInit(void)
85 { /*fsprobe_CleanupInit */
87 afs_int32 code; /*Return code from callback stubs */
88 struct rx_call *rxcall; /*Bogus param */
89 AFSCBFids *Fids_Array; /*Bogus param */
90 AFSCBs *CallBack_Array; /*Bogus param */
91 struct interfaceAddr *interfaceAddr; /*Bogus param */
93 fsprobe_ConnInfo = (struct fsprobe_ConnectionInfo *)0;
94 memset(&fsprobe_Results, 0, sizeof(struct fsprobe_ProbeResults));
96 rxcall = (struct rx_call *)0;
97 Fids_Array = (AFSCBFids *) 0;
98 CallBack_Array = (AFSCBs *) 0;
101 code = SRXAFSCB_CallBack(rxcall, Fids_Array, CallBack_Array);
104 code = SRXAFSCB_InitCallBackState2(rxcall, interfaceAddr);
107 code = SRXAFSCB_Probe(rxcall);
110 } /*fsprobe_CleanupInit */
113 /*------------------------------------------------------------------------
114 * [exported] fsprobe_Cleanup
117 * Clean up our memory and connection state.
120 * int a_releaseMem : Should we free up malloc'ed areas?
123 * 0 on total success,
124 * -1 if the module was never initialized, or there was a problem
125 * with the fsprobe connection array.
128 * fsprobe_numServers should be properly set. We don't do anything
129 * unless fsprobe_Init() has already been called.
132 * Shuts down Rx connections gracefully, frees allocated space
134 *------------------------------------------------------------------------*/
137 fsprobe_Cleanup(int a_releaseMem)
138 { /*fsprobe_Cleanup */
140 static char rn[] = "fsprobe_Cleanup"; /*Routine name */
141 int code; /*Return code */
142 int conn_idx; /*Current connection index */
143 struct fsprobe_ConnectionInfo *curr_conn; /*Ptr to fsprobe connection */
146 * Assume the best, but check the worst.
148 if (!fsprobe_initflag) {
149 fprintf(stderr, "[%s] Refused; module not initialized\n", rn);
155 * Take care of all Rx connections first. Check to see that the
156 * server count is a legal value.
158 if (fsprobe_numServers <= 0) {
160 "[%s] Illegal number of servers to clean up (fsprobe_numServers = %d)\n",
161 rn, fsprobe_numServers);
164 if (fsprobe_ConnInfo != (struct fsprobe_ConnectionInfo *)0) {
166 * The fsprobe connection structure array exists. Go through it
167 * and close up any Rx connections it holds.
169 curr_conn = fsprobe_ConnInfo;
170 for (conn_idx = 0; conn_idx < fsprobe_numServers; conn_idx++) {
171 if (curr_conn->rxconn != (struct rx_connection *)0) {
172 rx_DestroyConnection(curr_conn->rxconn);
173 curr_conn->rxconn = (struct rx_connection *)0;
175 if (curr_conn->rxVolconn != (struct rx_connection *)0) {
176 rx_DestroyConnection(curr_conn->rxVolconn);
177 curr_conn->rxVolconn = (struct rx_connection *)0;
180 } /*for each fsprobe connection */
181 } /*fsprobe connection structure exists */
182 } /*Legal number of servers */
185 * Now, release all the space we've allocated, if asked to.
188 if (fsprobe_ConnInfo != (struct fsprobe_ConnectionInfo *)0)
189 free(fsprobe_ConnInfo);
190 if (fsprobe_Results.stats != NULL)
191 free(fsprobe_Results.stats);
192 if (fsprobe_Results.probeOK != (int *)0)
193 free(fsprobe_Results.probeOK);
197 * Return the news, whatever it is.
201 } /*fsprobe_Cleanup */
203 /*------------------------------------------------------------------------
204 * [private] fsprobe_LWP
207 * This LWP iterates over the server connections and gathers up
208 * the desired statistics from each one on a regular basis. When
209 * the sweep is done, the associated handler function is called
210 * to process the new data.
219 * Started by fsprobe_Init(), uses global sturctures.
223 *------------------------------------------------------------------------*/
225 fsprobe_LWP(void *unused)
228 static char rn[] = "fsprobe_LWP"; /*Routine name */
229 register afs_int32 code; /*Results of calls */
230 struct timeval tv; /*Time structure */
231 int conn_idx; /*Connection index */
232 struct fsprobe_ConnectionInfo *curr_conn; /*Current connection */
233 struct ProbeViceStatistics *curr_stats; /*Current stats region */
234 int *curr_probeOK; /*Current probeOK field */
235 ViceStatistics64 stats64; /*Current stats region */
236 stats64.ViceStatistics64_val = (afs_uint64 *)malloc(STATS64_VERSION *
238 while (1) { /*Service loop */
240 * Iterate through the server connections, gathering data.
241 * Don't forget to bump the probe count and zero the statistics
242 * areas before calling the servers.
246 "[%s] Waking up, collecting data from %d connected servers\n",
247 rn, fsprobe_numServers);
248 curr_conn = fsprobe_ConnInfo;
249 curr_stats = fsprobe_Results.stats;
250 curr_probeOK = fsprobe_Results.probeOK;
251 fsprobe_Results.probeNum++;
252 memset(fsprobe_Results.stats, 0, fsprobe_statsBytes);
253 memset(fsprobe_Results.probeOK, 0, fsprobe_probeOKBytes);
255 for (conn_idx = 0; conn_idx < fsprobe_numServers; conn_idx++) {
257 * Grab the statistics for the current FileServer, if the
258 * connection is valid.
261 fprintf(stderr, "[%s] Contacting server %s\n", rn,
262 curr_conn->hostName);
263 if (curr_conn->rxconn != (struct rx_connection *)0) {
266 "[%s] Connection valid, calling RXAFS_GetStatistics\n",
269 RXAFS_GetStatistics64(curr_conn->rxconn, STATS64_VERSION, &stats64);
270 if (*curr_probeOK == RXGEN_OPCODE)
272 RXAFS_GetStatistics(curr_conn->rxconn, (ViceStatistics *)curr_stats);
273 else if (*curr_probeOK == 0) {
274 curr_stats->CurrentTime = RoundInt64ToInt32(stats64.ViceStatistics64_val[STATS64_CURRENTTIME]);
275 curr_stats->BootTime = RoundInt64ToInt32(stats64.ViceStatistics64_val[STATS64_BOOTTIME]);
276 curr_stats->StartTime = RoundInt64ToInt32(stats64.ViceStatistics64_val[STATS64_STARTTIME]);
277 curr_stats->CurrentConnections = RoundInt64ToInt32(stats64.ViceStatistics64_val[STATS64_CURRENTCONNECTIONS]);
278 curr_stats->TotalFetchs = RoundInt64ToInt32(stats64.ViceStatistics64_val[STATS64_TOTALFETCHES]);
279 curr_stats->TotalStores = RoundInt64ToInt32(stats64.ViceStatistics64_val[STATS64_TOTALSTORES]);
280 curr_stats->WorkStations = RoundInt64ToInt32(stats64.ViceStatistics64_val[STATS64_WORKSTATIONS]);
284 /*Valid Rx connection */
286 * Call the Volume Server too to get additional stats
289 fprintf(stderr, "[%s] Contacting volume server %s\n", rn,
290 curr_conn->hostName);
291 if (curr_conn->rxVolconn != (struct rx_connection *)0) {
294 struct diskPartition partition;
295 struct diskPartition64 *partition64p =
296 (struct diskPartition64 *)malloc(sizeof(struct diskPartition64));
300 "[%s] Connection valid, calling RXAFS_GetStatistics\n",
302 for (i = 0; i < curr_conn->partCnt; i++) {
303 if (curr_conn->partList.partFlags[i] & PARTVALID) {
304 MapPartIdIntoName(curr_conn->partList.partId[i],
307 AFSVolPartitionInfo64(curr_conn->rxVolconn, pname,
311 curr_stats->Disk[i].BlocksAvailable =
312 RoundInt64ToInt31(partition64p->free);
313 curr_stats->Disk[i].TotalBlocks =
314 RoundInt64ToInt31(partition64p->minFree);
315 strcpy(curr_stats->Disk[i].Name, pname);
317 if (code == RXGEN_OPCODE) {
319 AFSVolPartitionInfo(curr_conn->rxVolconn,
322 curr_stats->Disk[i].BlocksAvailable =
324 curr_stats->Disk[i].TotalBlocks =
326 strcpy(curr_stats->Disk[i].Name, pname);
331 "Could not get information on server %s partition %s\n",
332 curr_conn->hostName, pname);
341 * Advance the fsprobe connection pointer & stats pointer.
347 } /*For each fsprobe connection */
350 * All (valid) connections have been probed. Now, call the
351 * associated handler function. The handler does not take
352 * any explicit parameters, rather gets to the goodies via
353 * some of the objects exported by this module.
357 "[%s] Polling complete, calling associated handler routine.\n",
359 code = fsprobe_Handler();
361 fprintf(stderr, "[%s] Handler routine returned error code %d\n",
365 * Fall asleep for the prescribed number of seconds.
367 tv.tv_sec = fsprobe_ProbeFreqInSecs;
370 fprintf(stderr, "[%s] Falling asleep for %d seconds\n", rn,
371 fsprobe_ProbeFreqInSecs);
372 code = IOMGR_Select(0, /*Num fids */
373 0, /*Descriptors ready for reading */
374 0, /*Descriptors ready for writing */
375 0, /*Descriptors w/exceptional conditions */
376 &tv); /*Ptr to timeout structure */
378 fprintf(stderr, "[%s] IOMGR_Select returned code %d\n", rn, code);
380 free(stats64.ViceStatistics64_val);
385 /*list all the partitions on <aserver> */
386 static int newvolserver = 0;
389 XListPartitions(struct rx_connection *aconn, struct partList *ptrPartList,
393 struct partEntries partEnts;
394 register int i, j = 0, code;
397 if (newvolserver == 1) {
398 for (i = 0; i < 26; i++)
399 partIds.partIds[i] = -1;
401 code = AFSVolListPartitions(aconn, &partIds);
403 for (i = 0; i < 26; i++) {
404 if ((partIds.partIds[i]) != -1) {
405 ptrPartList->partId[j] = partIds.partIds[i];
406 ptrPartList->partFlags[j] = PARTVALID;
409 ptrPartList->partFlags[i] = 0;
415 partEnts.partEntries_len = 0;
416 partEnts.partEntries_val = NULL;
417 code = AFSVolXListPartitions(aconn, &partEnts);
419 if (code == RXGEN_OPCODE) {
420 newvolserver = 1; /* Doesn't support new interface */
427 *cntp = partEnts.partEntries_len;
428 if (*cntp > VOLMAXPARTS) {
430 "Warning: number of partitions on the server too high %d (process only %d)\n",
434 for (i = 0; i < *cntp; i++) {
435 ptrPartList->partId[i] = partEnts.partEntries_val[i];
436 ptrPartList->partFlags[i] = PARTVALID;
438 free(partEnts.partEntries_val);
443 "Could not fetch the list of partitions from the server\n");
448 /*------------------------------------------------------------------------
449 * [exported] fsprobe_Init
452 * Initialize the fsprobe module: set up Rx connections to the
453 * given set of servers, start up the probe and callback LWPs,
454 * and associate the routine to be called when a probe completes.
457 * int a_numServers : Num. servers to connect to.
458 * struct sockaddr_in *a_socketArray : Array of server sockets.
459 * int a_ProbeFreqInSecs : Probe frequency in seconds.
460 * int (*a_ProbeHandler)() : Ptr to probe handler fcn.
461 * int a_debug; : Turn debugging output on?
465 * -2 for (at least one) connection error,
466 * LWP process creation code, if it failed,
467 * -1 for other fatal errors.
470 * *** MUST BE THE FIRST ROUTINE CALLED FROM THIS PACKAGE ***
471 * Also, the server security object CBsecobj MUST be a static,
472 * since it has to stick around after this routine exits.
475 * Sets up just about everything.
476 *------------------------------------------------------------------------*/
479 fsprobe_Init(int a_numServers, struct sockaddr_in *a_socketArray,
480 int a_ProbeFreqInSecs, int (*a_ProbeHandler)(void),
484 static char rn[] = "fsprobe_Init"; /*Routine name */
485 register afs_int32 code; /*Return value */
486 static struct rx_securityClass *CBsecobj; /*Callback security object */
487 struct rx_securityClass *secobj; /*Client security object */
488 struct rx_service *rxsrv_afsserver; /*Server for AFS */
489 int arg_errfound; /*Argument error found? */
490 int curr_srv; /*Current server idx */
491 struct fsprobe_ConnectionInfo *curr_conn; /*Ptr to current conn */
492 char *hostNameFound; /*Ptr to returned host name */
493 int conn_err; /*Connection error? */
494 int PortToUse; /*Callback port to use */
497 * If we've already been called, snicker at the bozo, gently
498 * remind him of his doubtful heritage, and return success.
500 if (fsprobe_initflag) {
501 fprintf(stderr, "[%s] Called multiple times!\n", rn);
504 fsprobe_initflag = 1;
507 * Check the parameters for bogosities.
510 if (a_numServers <= 0) {
511 fprintf(stderr, "[%s] Illegal number of servers: %d\n", rn,
515 if (a_socketArray == (struct sockaddr_in *)0) {
516 fprintf(stderr, "[%s] Null server socket array argument\n", rn);
519 if (a_ProbeFreqInSecs <= 0) {
520 fprintf(stderr, "[%s] Illegal probe frequency: %d\n", rn,
524 if (a_ProbeHandler == (int (*)())0) {
525 fprintf(stderr, "[%s] Null probe handler function argument\n", rn);
532 * Record our passed-in info.
534 fsprobe_debug = a_debug;
535 fsprobe_numServers = a_numServers;
536 fsprobe_Handler = a_ProbeHandler;
537 fsprobe_ProbeFreqInSecs = a_ProbeFreqInSecs;
540 * Get ready in case we have to do a cleanup - basically, zero
543 fsprobe_CleanupInit();
546 * Allocate the necessary data structures and initialize everything
549 fsprobe_ConnInfo = (struct fsprobe_ConnectionInfo *)
550 malloc(a_numServers * sizeof(struct fsprobe_ConnectionInfo));
551 if (fsprobe_ConnInfo == (struct fsprobe_ConnectionInfo *)0) {
553 "[%s] Can't allocate %d connection info structs (%"AFS_SIZET_FMT" bytes)\n",
555 (a_numServers * sizeof(struct fsprobe_ConnectionInfo)));
556 return (-1); /*No cleanup needs to be done yet */
560 fprintf(stderr, "[%s] fsprobe_ConnInfo allocated (%d bytes)\n", rn,
561 a_numServers * sizeof(struct fsprobe_ConnectionInfo));
564 fsprobe_statsBytes = a_numServers * sizeof(struct ProbeViceStatistics);
565 fsprobe_Results.stats = (struct ProbeViceStatistics *)
566 malloc(fsprobe_statsBytes);
567 if (fsprobe_Results.stats == NULL) {
569 "[%s] Can't allocate %d statistics structs (%d bytes)\n", rn,
570 a_numServers, fsprobe_statsBytes);
571 fsprobe_Cleanup(1); /*Delete already-malloc'ed areas */
573 } else if (fsprobe_debug)
574 fprintf(stderr, "[%s] fsprobe_Results.stats allocated (%d bytes)\n",
575 rn, fsprobe_statsBytes);
577 fsprobe_probeOKBytes = a_numServers * sizeof(int);
578 fsprobe_Results.probeOK = (int *)malloc(fsprobe_probeOKBytes);
579 if (fsprobe_Results.probeOK == (int *)0) {
581 "[%s] Can't allocate %d probeOK array entries (%d bytes)\n",
582 rn, a_numServers, fsprobe_probeOKBytes);
583 fsprobe_Cleanup(1); /*Delete already-malloc'ed areas */
585 } else if (fsprobe_debug)
586 fprintf(stderr, "[%s] fsprobe_Results.probeOK allocated (%d bytes)\n",
587 rn, fsprobe_probeOKBytes);
589 fsprobe_Results.probeNum = 0;
590 fsprobe_Results.probeTime = 0;
591 memset(fsprobe_Results.stats, 0,
592 (a_numServers * sizeof(struct ProbeViceStatistics)));
595 * Initialize the Rx subsystem, just in case nobody's done it.
598 fprintf(stderr, "[%s] Initializing Rx\n", rn);
599 PortToUse = FSPROBE_CBPORT;
601 code = rx_Init(htons(PortToUse));
603 if (code == RX_ADDRINUSE) {
606 "[%s] Callback port %d in use, advancing\n", rn,
610 fprintf(stderr, "[%s] Fatal error in rx_Init()\n", rn);
616 fprintf(stderr, "[%s] Rx initialized on port %d\n", rn, PortToUse);
619 * Create a null Rx server security object, to be used by the
622 CBsecobj = rxnull_NewServerSecurityObject();
623 if (CBsecobj == (struct rx_securityClass *)0) {
625 "[%s] Can't create null security object for the callback listener.\n",
627 fsprobe_Cleanup(1); /*Delete already-malloc'ed areas */
631 fprintf(stderr, "[%s] Callback server security object created\n", rn);
634 * Create a null Rx client security object, to be used by the
637 secobj = rxnull_NewClientSecurityObject();
638 if (secobj == (struct rx_securityClass *)0) {
640 "[%s] Can't create client security object for probe LWP.\n",
642 fsprobe_Cleanup(1); /*Delete already-malloc'ed areas */
646 fprintf(stderr, "[%s] Probe LWP client security object created\n",
649 curr_conn = fsprobe_ConnInfo;
651 for (curr_srv = 0; curr_srv < a_numServers; curr_srv++) {
653 * Copy in the socket info for the current server, resolve its
654 * printable name if possible.
657 fprintf(stderr, "[%s] Copying in the following socket info:\n",
659 fprintf(stderr, "[%s] IP addr 0x%x, port %d\n", rn,
660 (a_socketArray + curr_srv)->sin_addr.s_addr,
661 (a_socketArray + curr_srv)->sin_port);
663 memcpy(&(curr_conn->skt), a_socketArray + curr_srv,
664 sizeof(struct sockaddr_in));
667 hostutil_GetNameByINet(curr_conn->skt.sin_addr.s_addr);
668 if (hostNameFound == NULL) {
670 "[%s] Can't map Internet address %u to a string name\n",
671 rn, curr_conn->skt.sin_addr.s_addr);
672 curr_conn->hostName[0] = '\0';
674 strcpy(curr_conn->hostName, hostNameFound);
676 fprintf(stderr, "[%s] Host name for server index %d is %s\n",
677 rn, curr_srv, curr_conn->hostName);
681 * Make an Rx connection to the current server.
685 "[%s] Connecting to srv idx %d, IP addr 0x%x, port %d, service 1\n",
686 rn, curr_srv, curr_conn->skt.sin_addr.s_addr,
687 curr_conn->skt.sin_port);
688 curr_conn->rxconn = rx_NewConnection(curr_conn->skt.sin_addr.s_addr, /*Server addr */
689 curr_conn->skt.sin_port, /*Server port */
690 1, /*AFS service num */
691 secobj, /*Security object */
692 0); /*Number of above */
693 if (curr_conn->rxconn == (struct rx_connection *)0) {
695 "[%s] Can't create Rx connection to server %s (%u)\n",
696 rn, curr_conn->hostName, curr_conn->skt.sin_addr.s_addr);
700 fprintf(stderr, "[%s] New connection at %p\n", rn,
704 * Make an Rx connection to the current volume server.
708 "[%s] Connecting to srv idx %d, IP addr 0x%x, port %d, service 1\n",
709 rn, curr_srv, curr_conn->skt.sin_addr.s_addr,
711 curr_conn->rxVolconn = rx_NewConnection(curr_conn->skt.sin_addr.s_addr, /*Server addr */
712 htons(AFSCONF_VOLUMEPORT), /*Volume Server port */
713 VOLSERVICE_ID, /*AFS service num */
714 secobj, /*Security object */
715 0); /*Number of above */
716 if (curr_conn->rxVolconn == (struct rx_connection *)0) {
718 "[%s] Can't create Rx connection to volume server %s (%u)\n",
719 rn, curr_conn->hostName, curr_conn->skt.sin_addr.s_addr);
724 memset(&curr_conn->partList, 0, sizeof(struct partList));
725 curr_conn->partCnt = 0;
726 i = XListPartitions(curr_conn->rxVolconn, &curr_conn->partList,
729 curr_conn->partCnt = cnt;
733 fprintf(stderr, "[%s] New connection at %p\n", rn,
734 curr_conn->rxVolconn);
738 * Bump the current fsprobe connection to set up.
745 * Create the AFS callback service (listener).
748 fprintf(stderr, "[%s] Creating AFS callback listener\n", rn);
749 rxsrv_afsserver = rx_NewService(0, /*Use default port */
751 "afs", /*Service name */
752 &CBsecobj, /*Ptr to security object(s) */
753 1, /*Number of security objects */
754 RXAFSCB_ExecuteRequest); /*Dispatcher */
755 if (rxsrv_afsserver == (struct rx_service *)0) {
756 fprintf(stderr, "[%s] Can't create callback Rx service/listener\n",
758 fsprobe_Cleanup(1); /*Delete already-malloc'ed areas */
762 fprintf(stderr, "[%s] Callback listener created\n", rn);
765 * Start up the AFS callback service.
768 fprintf(stderr, "[%s] Starting up callback listener.\n", rn);
769 rx_StartServer(0 /*Don't donate yourself to LWP pool */ );
772 * Start up the probe LWP.
775 fprintf(stderr, "[%s] Creating the probe LWP\n", rn);
776 code = LWP_CreateProcess(fsprobe_LWP, /*Function to start up */
777 LWP_STACK_SIZE, /*Stack size in bytes */
779 (void *)0, /*Parameters */
780 "fsprobe Worker", /*Name to use */
781 &probeLWP_ID); /*Returned LWP process ID */
783 fprintf(stderr, "[%s] Can't create fsprobe LWP! Error is %d\n", rn,
785 fsprobe_Cleanup(1); /*Delete already-malloc'ed areas */
789 fprintf(stderr, "[%s] Probe LWP process structure located at %p\n",
794 * Do I need to do this?
797 fprintf(stderr, "[%s] Calling osi_Wakeup()\n", rn);
798 osi_Wakeup(&rxsrv_afsserver); /*Wake up anyone waiting for it */
802 * Return the final results.
812 /*------------------------------------------------------------------------
813 * [exported] fsprobe_ForceProbeNow
816 * Wake up the probe LWP, forcing it to execute a probe immediately.
823 * Error value otherwise.
826 * The module must have been initialized.
830 *------------------------------------------------------------------------*/
833 fsprobe_ForceProbeNow(void)
834 { /*fsprobe_ForceProbeNow */
836 static char rn[] = "fsprobe_ForceProbeNow"; /*Routine name */
839 * There isn't a prayer unless we've been initialized.
841 if (!fsprobe_initflag) {
842 fprintf(stderr, "[%s] Must call fsprobe_Init first!\n", rn);
847 * Kick the sucker in the side.
849 IOMGR_Cancel(probeLWP_ID);
852 * We did it, so report the happy news.
856 } /*fsprobe_ForceProbeNow */