/*
* Global configuration information for the Backup Coordinator.
*/
-struct bc_config *bc_globalConfig; /*Ptr to global BC configuration info */
+extern struct bc_config *bc_globalConfig; /*Ptr to global BC configuration info */
-struct ubik_client *cstruct; /* Ptr to Ubik client structure */
+extern struct ubik_client *cstruct; /* Ptr to Ubik client structure */
time_t tokenExpires; /* The token's expiration time */
static const char *DefaultConfDir; /*Default backup config directory */
udbClientTextP ctPtr;
int i;
- extern struct bc_config *bc_globalConfig;
-
mkdir(DefaultConfDir, 777); /* temporary */
/* initialize the client text structures */
#include "error_macros.h"
dlqlinkT savedEntries;
-dlqlinkT entries_to_flush;
+static dlqlinkT entries_to_flush;
int dbWatcherinprogress;
extern int forcemultiple;
extern struct ubik_client *cstruct;
-dlqlinkT savedEntries;
-dlqlinkT entries_to_flush;
+extern dlqlinkT savedEntries;
extern afs_int32 groupId;
extern afs_int32 BufferSize;
extern char *globalButcLog;
#endif /*xbsa */
-afs_int32 dataSize; /* Size of data to read on each rx_Read() call */
-afs_int32 tapeblocks; /* Number of 16K tape datablocks in buffer (!CONF_XBSA) */
+extern afs_int32 dataSize; /* Size of data to read on each rx_Read() call */
+extern afs_int32 tapeblocks; /* Number of 16K tape datablocks in buffer (!CONF_XBSA) */
/* TBD
*
#endif
/* XBSA Global Parameters */
-afs_int32 xbsaType;
+extern afs_int32 xbsaType;
#ifdef xbsa
struct butx_transactionInfo butxInfo;
#endif
#define TL_PREFIX "TL"
#define CFG_PREFIX "CFG"
-struct ubik_client *cstruct;
+extern struct ubik_client *cstruct;
FILE *logIO, *ErrorlogIO, *centralLogIO, *lastLogIO;
char lFile[AFSDIR_PATH_MAX];
char logFile[AFSDIR_PATH_MAX + 256];
XCFLAGS="${XCFLAGS} -Wall -Wstrict-prototypes -Wold-style-definition -Wpointer-arith"
fi
if test "x$enable_checking" != "xno"; then
- XCFLAGS="${XCFLAGS} -Wall -Wstrict-prototypes -Wold-style-definition -Werror -fdiagnostics-show-option -Wpointer-arith"
+ XCFLAGS="${XCFLAGS} -Wall -Wstrict-prototypes -Wold-style-definition -Werror -fdiagnostics-show-option -Wpointer-arith -fno-common"
CFLAGS_WERROR="-Werror"
if test "x$enable_checking" != "xall"; then
CFLAGS_NOERROR="-Wno-error"
extern int fsprobe_numServers; /*# servers connected */
extern struct fsprobe_ConnectionInfo *fsprobe_ConnInfo; /*Ptr to connections */
-extern int numCollections; /*Num data collections */
extern struct fsprobe_ProbeResults fsprobe_Results; /*Latest probe results */
extern int fsprobe_Init(int, struct sockaddr_in *, int, int (*)(void), int );
* will work and we can avoid nasty little core dumps.
*/
struct ubik_client *uconn_vldbP; /*Ubik connection struct */
-struct ubik_client *cstruct; /*Required name for above */
+extern struct ubik_client *cstruct; /*Required name for above */
/*
* ------------------------ Private globals -----------------------
int rxcon_ident_key;
int rxcon_client_key;
+struct host *(hosttableptrs[h_MAXHOSTTABLES]);
+
static struct rx_securityClass *sc = NULL;
static int h_quota_limit;
#define H_ENUMERATE_BAIL(flags) ((flags)|0x80000000)
#define H_ENUMERATE_ISSET_BAIL(flags) ((flags)&0x80000000)
-struct host *(hosttableptrs[h_MAXHOSTTABLES]); /* Used by h_itoh */
+extern struct host *(hosttableptrs[h_MAXHOSTTABLES]); /* Used by h_itoh */
#define h_htoi(host) ((host)->index) /* index isn't zeroed, no need to lock */
#define h_itoh(hostindex) (hosttableptrs[(hostindex)>>h_HTSHIFT]+((hostindex)&(h_HTSPERBLOCK-1)))
#endif /* USE_UNIX_SOCKETS */
#ifdef FSSYNC_BUILD_SERVER
-
-int (*V_BreakVolumeCallbacks) (VolumeId volume);
-
#define MAXHANDLERS 4 /* Up to 4 clients; must be at least 2, so that
* move = dump+restore can run on single server */
#define MAXOFFLINEVOLUMES 128 /* This needs to be as big as the maximum
int vol_attach_threads = 1;
#endif /* AFS_PTHREAD_ENV */
-/* start-time configurable I/O parameters */
-ih_init_params vol_io_params;
-
#ifdef AFS_DEMAND_ATTACH_FS
pthread_mutex_t vol_salvsync_mutex;
int xstat_cm_numServers; /*Num connected servers */
struct xstat_cm_ConnectionInfo
*xstat_cm_ConnInfo; /*Ptr to connection array */
-int numCollections; /*Number of data collections */
struct xstat_cm_ProbeResults xstat_cm_Results; /*Latest probe results */
-char terminationEvent; /*One-shot termination event */
afs_int32 xstat_cmData[AFSCB_MAX_XSTAT_LONGS]; /*Buffer for collected data */
extern int xstat_cm_numServers; /*# connected servers */
extern struct xstat_cm_ConnectionInfo
*xstat_cm_ConnInfo; /*Ptr to connections */
-extern int numCollections; /*Num data collections */
extern struct xstat_cm_ProbeResults
xstat_cm_Results; /*Latest probe results */
-extern char terminationEvent; /*One-shot termination event */
/*
* ------------------------ Exported functions ------------------------
int xstat_fs_numServers; /*Num connected servers */
struct xstat_fs_ConnectionInfo
*xstat_fs_ConnInfo; /*Ptr to connection array */
-int numCollections; /*Number of data collections */
struct xstat_fs_ProbeResults xstat_fs_Results; /*Latest probe results */
-char terminationEvent; /*One-shot termination event */
afs_int32 xstat_fsData[AFS_MAX_XSTAT_LONGS]; /*Buffer for collected data */
extern int xstat_fs_numServers; /*# connected servers */
extern struct xstat_fs_ConnectionInfo
*xstat_fs_ConnInfo; /*Ptr to connections */
-extern int numCollections; /*Num data collections */
extern struct xstat_fs_ProbeResults
xstat_fs_Results; /*Latest probe results */
-extern char terminationEvent; /*One-shot termination event */
/*
* ------------------------ Exported functions ------------------------