#include <rx/xdr.h>
#include <afs/afsint.h>
-#include "nfs.h"
+#include <afs/nfs.h>
#include <afs/errors.h>
-#include "lock.h"
-#include "lwp.h"
+#include <lock.h>
+#include <lwp.h>
#include <afs/afssyscalls.h>
-#include "ihandle.h"
-#include "vnode.h"
-#include "volume.h"
-#include "partition.h"
-#include "viceinode.h"
+#include <afs/ihandle.h>
+#include <afs/vnode.h>
+#include <afs/volume.h>
+#include <afs/partition.h>
+#include <afs/viceinode.h>
#include <afs/afssyscalls.h>
-#include "acl.h"
+#include <afs/acl.h>
#include <afs/dir.h>
+#include <afs/com_err.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#include <dirent.h>
-#include "volser/volser.h"
-#include "volser/volint.h"
-#include "volser/dump.h"
+#include "volser.h"
+#include "volint.h"
+#include "dump.h"
#define putint32(p, v) *p++ = v>>24, *p++ = v>>16, *p++ = v>>8, *p++ = v
#define putshort(p, v) *p++ = v>>8, *p++ = v
{
register struct cmd_syndesc *ts;
afs_int32 code;
+ VolumePackageOptions opts;
- VInitVolumePackage(volumeUtility, 5, 5, DONT_CONNECT_FS, 0);
+ VOptDefaults(volumeUtility, &opts);
+ VInitVolumePackage2(volumeUtility, &opts);
ts = cmd_CreateSyntax(NULL, handleit, NULL,
"Dump a volume to a 'vos dump' format file without using volserver");
dumpfd =
afs_open(dumpfile, O_CREAT | O_WRONLY | O_TRUNC, S_IRUSR | S_IWUSR);
if (dumpfd < 0) {
- fprintf(stderr, "Failed to open dump file! Exiting.\n");
+ fprintf(stderr, "Failed to open dump file: %s. Exiting.\n",
+ afs_error_message(errno));
exit(1);
}
} else {