#include <rx/xdr.h>
#include <afs/afsint.h>
#include <afs/assert.h>
-
+#include <afs/dir.h>
#include <fcntl.h>
#include <afs/afsutil.h>
#include <afs/fileutil.h>
-#include "nfs.h"
-#include "lwp.h"
-#include "lock.h"
-#include "ihandle.h"
-#include "vnode.h"
-#include "volume.h"
-#include "partition.h"
-#include "daemon_com.h"
-#include "salvsync.h"
+#include <afs/nfs.h>
+#include <lwp.h>
+#include <lock.h>
+#include <afs/ihandle.h>
+#include <afs/vnode.h>
+#include <afs/volume.h>
+#include <afs/partition.h>
+#include <afs/daemon_com.h>
+#include <afs/salvsync.h>
#ifdef AFS_NT40_ENV
#include <pthread.h>
#endif
static char * response_code_to_string(afs_int32);
static char * command_code_to_string(afs_int32);
static char * reason_code_to_string(afs_int32);
-static char * program_type_to_string(afs_int32);
static char * state_code_to_string(afs_int32);
{
struct cmd_syndesc *ts;
int err = 0;
- int i;
- extern char cml_version_number[];
/* Initialize directory paths */
if (!(initAFSDirPath() & AFSDIR_SERVER_PATHS_OK)) {
common_prolog(struct cmd_syndesc * as, struct state * state)
{
register struct cmd_item *ti;
+ VolumePackageOptions opts;
#ifdef AFS_NT40_ENV
if (afs_winsockInit() < 0) {
}
#endif
- VInitVolumePackage(debugUtility, 1, 1,
- DONT_CONNECT_FS, 0);
+ VOptDefaults(debugUtility, &opts);
+ VInitVolumePackage2(debugUtility, &opts);
DInit(1);
if ((ti = as->parms[COMMON_PARMS_OFFSET].items)) { /* -reason */
programType = salvager;
} else if (!strcmp(ti->data, "salvageServer")) {
programType = salvageServer;
+ } else if (!strcmp(ti->data, "volumeServer")) {
+ programType = volumeServer;
+ } else if (!strcmp(ti->data, "volumeSalvager")) {
+ programType = volumeSalvager;
} else {
programType = (ProgramType) atoi(ti->data);
}
common_salv_prolog(struct cmd_syndesc * as, struct state * state)
{
register struct cmd_item *ti;
- char pname[100], *temp;
state->sop = (struct salv_state *) calloc(1, sizeof(struct salv_state));
assert(state->sop != NULL);
printf("}\n");
VDisconnectSALV();
+
+ return 0;
}
static char *
}
}
+#if 0
static char *
program_type_to_string(afs_int32 type)
{
return "**UNKNOWN**";
}
}
+#endif
static char *
state_code_to_string(afs_int32 state)