2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
11 #include <sys/types.h>
14 #include <sys/statfs.h>
21 #include <netinet/in.h>
24 #include <afs/voldefs.h>
27 #include <afs/vlserver.h>
30 #include <afs/cellconfig.h>
33 #include <afs/afsint.h>
34 #include <afs/volser.h>
35 #include <afs/volint.h>
36 #include "../../volser/lockdata.h"
37 #include "../../vlserver/vlclient.h"
38 #include <afs/com_err.h>
40 #include <afs/kautils.h>
43 #include <afs/afs_Admin.h>
44 #include "../adminutil/afs_AdminInternal.h"
46 #define CLOCKSKEW 2 /* not really skew, but resolution */
48 extern int ubik_Call();
49 extern int ubik_Call_New();
52 extern int UV_NukeVolume(
53 afs_cell_handle_p cellHandle,
54 struct rx_connection *server,
55 unsigned int partition,
56 unsigned int volumeId,
60 extern int UV_CreateVolume(
61 afs_cell_handle_p cellHandle,
62 struct rx_connection *server,
63 unsigned int partition,
64 const char *volumeName,
66 unsigned int *volumeId,
70 extern int UV_DeleteVolume(
71 afs_cell_handle_p cellHandle,
72 struct rx_connection *server,
73 unsigned int partition,
74 unsigned int volumeId,
78 extern int UV_MoveVolume(
79 afs_cell_handle_p cellHandle,
81 afs_int32 afromserver,
88 extern int UV_BackupVolume(
89 afs_cell_handle_p cellHandle,
96 extern int UV_ReleaseVolume(
97 afs_cell_handle_p cellHandle,
99 afs_int32 afromserver,
105 extern int UV_DumpVolume(
106 afs_cell_handle_p cellHandle,
108 afs_int32 afromserver,
111 const char *filename,
115 extern int UV_RestoreVolume(
116 afs_cell_handle_p cellHandle,
120 const char *tovolname,
122 const char *dumpFile,
126 extern int UV_AddSite(
127 afs_cell_handle_p cellHandle,
134 extern int UV_RemoveSite(
135 afs_cell_handle_p cellHandle,
142 extern int UV_ListPartitions(
143 struct rx_connection *server,
144 struct partList *ptrPartList,
149 extern int UV_XListVolumes(
150 struct rx_connection *server,
153 struct volintXInfo **a_resultPP,
154 afs_int32 *a_numEntsInResultP,
158 extern int UV_XListOneVolume(
159 struct rx_connection *server,
162 struct volintXInfo **a_resultPP,
166 extern int UV_SyncVldb(
167 afs_cell_handle_p cellHandle,
168 struct rx_connection *server,
175 extern int CheckVldb(
176 afs_cell_handle_p cellHandle,
177 struct nvldbentry *entry,
182 extern int UV_SyncServer(
183 afs_cell_handle_p cellHandle,
184 struct rx_connection *server,
191 extern int UV_VolserStatus(
192 struct rx_connection *server,
193 transDebugInfo **rpntr,
198 extern int UV_VolumeZap(
199 afs_cell_handle_p cellHandle,
200 struct rx_connection *serverHandle,
201 unsigned int partition,
202 unsigned int volumeId,
206 extern int UV_SetVolume(
207 struct rx_connection *server,
216 extern int UV_RenameVolume(
217 afs_cell_handle_p cellHandle,
218 struct nvldbentry *entry,