return 0;
}
-afs_int32
-GetVolumeType(char *aname)
-{
-
- if (!strcmp(aname, "ro"))
- return (ROVOL);
- else if (!strcmp(aname, "rw"))
- return (RWVOL);
- else if (!strcmp(aname, "bk"))
- return (BACKVOL);
- else
- return (-1);
-}
-
int
IsPartValid(afs_int32 partId, afs_uint32 server, afs_int32 *code)
{
}
MapPartIdIntoName(apart, apartName);
- /*
- * patch typo here - originally "parms[1]", should be "parms[0]"
- */
-
fprintf(STDOUT, "Restored volume %s on %s %s\n", avolname,
as->parms[0].items->data, apartName);
return 0;
as->parms[1].items->data);
exit(1);
}
-/*
- *skip the partition validity check, since it is possible that the partition
- *has since been decomissioned.
- */
-/*
- if (!IsPartValid(apart,aserver,&code)){
- if(code) PrintError("",code);
- else fprintf(STDERR,"vos : partition %s does not exist on the server\n",as->parms[1].items->data);
- exit(1);
- }
-*/
+ /*
+ * The partition validity check is skipped, since it is possible that the
+ * partition has already been decomissioned.
+ */
+
code = UV_RemoveSite(aserver, apart, avolid);
if (code) {
PrintDiagnostics("remsite", code);
return (strcmp(arg1->name, arg2->name));
}
-/*
-static int CompareVldbEntry(char *p1, char *p2)
-{
- struct nvldbentry *arg1,*arg2;
- int i;
- int pos1, pos2;
- char comp1[100],comp2[100];
- char temp1[20],temp2[20];
-
- arg1 = (struct nvldbentry *)p1;
- arg2 = (struct nvldbentry *)p2;
- pos1 = -1;
- pos2 = -1;
-
- for(i = 0; i < arg1->nServers; i++)
- if(arg1->serverFlags[i] & VLSF_RWVOL) pos1 = i;
- for(i = 0; i < arg2->nServers; i++)
- if(arg2->serverFlags[i] & VLSF_RWVOL) pos2 = i;
- if(pos1 == -1 || pos2 == -1){
- pos1 = 0;
- pos2 = 0;
- }
- sprintf(comp1,"%10u",arg1->serverNumber[pos1]);
- sprintf(comp2,"%10u",arg2->serverNumber[pos2]);
- sprintf(temp1,"%10u",arg1->serverPartition[pos1]);
- sprintf(temp2,"%10u",arg2->serverPartition[pos2]);
- strcat(comp1,temp1);
- strcat(comp2,temp2);
- strcat(comp1,arg1->name);
- strcat(comp1,arg2->name);
- return(strcmp(comp1,comp2));
-
-}
-
-*/
static int
ListVLDB(struct cmd_syndesc *as, void *arock)
{
return 0;
}
-int
-osi_audit(void)
-{
-/* this sucks but it works for now.
-*/
- return 0;
-}
-
#include "AFS_component_version_number.c"
int