/* vsprocs.c */
struct nvldbentry;
-extern int yesprompt(char *str);
extern int PrintError(char *msg, afs_int32 errcode);
extern void init_volintInfo(struct volintInfo *vinfo);
extern void SubEnumerateEntry(struct nvldbentry *entry);
afs_uint32 avolid);
extern int UV_ReleaseVolume(afs_uint32 afromvol, afs_uint32 afromserver,
afs_int32 afrompart, int forceflag);
-extern void dump_sig_handler(int x);
extern int UV_DumpVolume(afs_uint32 afromvol, afs_uint32 afromserver,
afs_int32 afrompart, afs_int32 fromdate,
afs_int32(*DumpFunction) (struct rx_call *, void *),
extern int UV_XListOneVolume(afs_uint32 a_serverID, afs_int32 a_partID,
afs_uint32 a_volID,
struct volintXInfo **a_resultPP);
-extern int sortVolumes(const void *a, const void *b);
extern int UV_SyncVolume(afs_uint32 aserver, afs_int32 apart, char *avolname,
int flags);
extern int UV_SyncVldb(afs_uint32 aserver, afs_int32 apart, int flags,
int force);
-extern afs_int32 VolumeExists(afs_uint32 server, afs_int32 partition,
- afs_uint32 volumeid);
-extern afs_int32 CheckVldbRWBK(struct nvldbentry *entry,
- afs_int32 * modified);
-extern int CheckVldbRO(struct nvldbentry *entry, afs_int32 * modified);
-extern afs_int32 CheckVldb(struct nvldbentry *entry, afs_int32 * modified,
- afs_int32 *deleted);
extern int UV_SyncServer(afs_uint32 aserver, afs_int32 apart, int flags,
int force);
extern int UV_RenameVolume(struct nvldbentry *entry, char oldname[],
static afs_int32 CheckVolume(volintInfo * volumeinfo, afs_uint32 aserver,
afs_int32 apart, afs_int32 * modentry,
afs_uint32 * maxvolid, struct nvldbentry *aentry);
+static afs_int32 VolumeExists(afs_uint32 server, afs_int32 partition,
+ afs_uint32 volumeid);
+static afs_int32 CheckVldbRWBK(struct nvldbentry * entry,
+ afs_int32 * modified);
+static afs_int32 CheckVldbRO(struct nvldbentry *entry, afs_int32 * modified);
+static afs_int32 CheckVldb(struct nvldbentry *entry, afs_int32 * modified,
+ afs_int32 *deleted);
+static void dump_sig_handler(int x);
+static int sortVolumes(const void *a, const void *b);
/*map the partition <partId> into partition name <partName>*/
}
-void
+static void
dump_sig_handler(int x)
{
fprintf(STDERR, "\nSignal handler: vos dump operation\n");
return (error);
}
-int
+static int
sortVolumes(const void *a, const void *b)
{
volintInfo *v1 = (volintInfo *) a;
* Some error codes mean the volume is unavailable but
* still exists - so we catch these error codes.
*/
-afs_int32
+static afs_int32
VolumeExists(afs_uint32 server, afs_int32 partition, afs_uint32 volumeid)
{
struct rx_connection *conn = (struct rx_connection *)0;
/* CheckVldbRWBK()
*
*/
-afs_int32
+static afs_int32
CheckVldbRWBK(struct nvldbentry * entry, afs_int32 * modified)
{
int modentry = 0;
return (error);
}
-int
+static afs_int32
CheckVldbRO(struct nvldbentry *entry, afs_int32 * modified)
{
int idx;
/* CheckVldb()
* Ensure that <entry> matches with the info on file servers
*/
-afs_int32
+static afs_int32
CheckVldb(struct nvldbentry * entry, afs_int32 * modified, afs_int32 * deleted)
{
afs_int32 code, error = 0;