#include <afsconfig.h>
#include <afs/param.h>
-RCSID
- ("$Header$");
#include <stdlib.h>
#include <stdio.h>
#include <afs/afsint.h>
#include <afs/assert.h>
-
#include <fcntl.h>
#ifndef AFS_NT40_ENV
#endif
#include <afs/cmd.h>
+#include <afs/dir.h>
#include <afs/afsutil.h>
#include <afs/fileutil.h>
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);
}
printf("\t\treason = %d (%s)\n",
vop.com.reason, reason_code_to_string(vop.com.reason));
printf("\t\tcommand_len = %u\n", vop.com.command_len);
- printf("\t\tflags = 0x%lux\n", afs_cast_uint32(vop.com.flags));
+ printf("\t\tflags = 0x%lux\n", afs_printable_uint32_lu(vop.com.flags));
printf("\t}\n");
printf("\tvop = {\n");
}
#endif /* !AFS_DEMAND_ATTACH_FS */
- printf("\twriter = %u\n", (unsigned int) v.writer);
printf("\tvcp = %p\n", v.vcp);
printf("\thandle = %p\n", v.handle);
printf("\t\tserverModifyTime = %u\n", v.disk.serverModifyTime);
printf("\t\tgroup = %d\n", v.disk.group);
printf("\t\tvn_ino_hi = %d\n", v.disk.vn_ino_hi);
- printf("\t\treserved6 = %u\n", v.disk.reserved6);
+ printf("\t\tvn_length_hi = %u\n", v.disk.vn_length_hi);
printf("\t}\n");
printf("}\n");