*/
#include <afs/param.h>
+#include <afsconfig.h>
#include <afs/stds.h>
#include <stdio.h>
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+#include <ctype.h>
#ifdef AFS_NT40_ENV
#include <winsock2.h>
#include <io.h>
#else
#include <sys/types.h>
#include <sys/socket.h>
+#include <unistd.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
int rc = 0;
afs_status_t tst = 0;
vldb_entry_get_p entry = (vldb_entry_get_p) rpc_specific;
- int index = entry->index;
/*
* Copy the next entry into the cache
afs_admin_iterator_p iter = (afs_admin_iterator_p) malloc(sizeof(afs_admin_iterator_t));
vldb_entry_get_p entry = (vldb_entry_get_p) calloc(1, sizeof(vldb_entry_get_t));
struct VldbListByAttributes attr;
- afs_int32 nentries = 0;
attr.Mask = 0;
memset(&attr, 0, sizeof(attr));
rc = 1;
-fail_copyvolintXInfo:
-
if (st != NULL) {
*st = tst;
}
int rc = 0;
afs_status_t tst = 0;
volume_get_p entry = (volume_get_p) rpc_specific;
- int index = entry->index;
/*
* Copy the next entry into the cache
#include "../adminutil/afs_AdminInternal.h"
#include <afs/afs_AdminErrors.h>
#include "afs_vosAdmin.h"
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
#ifdef AFS_NT40_ENV
#include <io.h>
#endif
-static GroupEntries();
+static afs_int32 GroupEntries();
struct release {
afs_int32 time;
afs_status_t tst = 0, temp = 0;
afs_int32 ttid = 0, btid = 0;
afs_int32 backupID;
- afs_int32 code = 0, rcode = 0;
+ afs_int32 rcode = 0;
char vname[VOLSER_MAXVOLNAME +1];
struct nvldbentry entry;
- afs_int32 error = 0;
int vldblocked = 0, vldbmod = 0, backexists = 1;
struct rx_connection *aconn = UV_Bind(cellHandle, aserver,
AFSCONF_VOLUMEPORT);
#define ONERROR(ec, ep, es) if (ec) { fprintf(STDERR, (es), (ep)); error = (ec); goto rfail; }
#define ERROREXIT(ec) { error = (ec); goto rfail; }
+#if 0 /* doesn't appear to be used, why compile it */
static int CloneVol (
afs_cell_handle_p cellHandle,
struct rx_connection *conn,
}
return rc;
}
+#endif
/* Get a "transaction" on this replica. Create the volume
* if necessary. Return the time from which a dump should
}
-static int rel_compar (
- struct release *r1,
- struct release *r2)
-{
- return (r1->time - r2->time);
-}
-
/* VolumeExists()
* Determine if a volume exists on a server and partition.
* Try creating a transaction on the volume. If we can,
afs_status_p st)
{
int rc = 0;
- afs_status_t tst = -1;
+ afs_status_t tst = 0;
struct rx_connection *conn=(struct rx_connection *)0;
volEntries volumeInfo;
struct release *times=0;
int nservers = 0;
struct rx_connection *fromconn = (struct rx_connection *)0;
- afs_int32 error = 0;
int islocked = 0;
afs_int32 clonetid=0, onlinetid;
afs_int32 fromtid=0;
- afs_uint32 fromdate, thisdate;
+ afs_uint32 fromdate=0, thisdate;
int s;
manyDests tr;
manyResults results;
int rwindex, roindex, roclone, roexists;
- afs_int32 rwcrdate;
+ afs_int32 rwcrdate = 0;
struct rtime {
int validtime;
afs_uint32 time;
if(tst) {
goto fail_UV_DumpVolume;
}
- if (tst = DumpFunction(fromcall,filename)) {
+ if ((tst = DumpFunction(fromcall,filename))) {
goto fail_UV_DumpVolume;
}
tst = rx_EndCall(fromcall,rxError);
afs_status_t etst = 0;
struct rx_connection *toconn,*tempconn;
struct rx_call *tocall;
- afs_int32 totid, rcode, terror = 0;
+ afs_int32 totid, rcode;
afs_int32 rxError = 0;
struct volser_status tstatus;
char partName[10];
afs_status_t tst = 0;
int j, nro=0, islocked=0;
struct nvldbentry entry;
- afs_int32 error=0;
int same = 0;
tst = ubik_Call(VL_SetLock, cellHandle->vos, 0,volid,RWVOL, VLOP_ADDSITE);
int rc = 0;
afs_status_t tst = 0;
struct nvldbentry entry;
- int islocked;
+ int islocked = 0;
tst = ubik_Call(VL_SetLock, cellHandle->vos, 0,volid, RWVOL, VLOP_ADDSITE);
if(tst) {
afs_status_t tst = 0;
int modentry = 0;
int idx;
- afs_int32 error = 0;
if (modified) *modified = 0;
idx = Lp_GetRwIndex(cellHandle, entry, 0);
afs_status_t tst = 0;
int idx;
int foundro = 0, modentry = 0;
- afs_int32 error = 0;
if (modified) *modified = 0;
int rc = 0;
afs_status_t tst = 0;
afs_int32 vcode;
- int islocked;
- struct rx_connection *server = NULL;
+ int islocked = 0;
int pass = 0;
afs_int32 modentry = 0;
afs_int32 delentry = 0;
*if the volume is rw. <count> is the number of entries to be processesd.
*<pntr> points to the first entry.< myQueue> is the queue with entries
*grouped */
-static int GroupEntries(
+static afs_int32 GroupEntries(
struct rx_connection *server,
volintInfo *pntr,
afs_int32 count,