/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
#include <afs/bubasics.h>
#include "bc.h"
#include "error_macros.h"
+#include "bucoord_internal.h"
#include "bucoord_prototypes.h"
-
+
/* code to manage volumesets
* specific to the ubik database implementation
*/
int
bc_AddVolEntryCmd(struct cmd_syndesc *as, void *arock)
{
- register int code;
+ int code;
char *volSetName, *serverName, *partitionName, *volRegExp;
udbClientTextP ctPtr;
struct bc_volumeSet *tset;
bc_AddVolSetCmd(struct cmd_syndesc *as, void *arock)
{
/* parm 0 is vol set name */
- register int code;
- register struct cmd_item *ti;
+ int code;
+ struct cmd_item *ti;
udbClientTextP ctPtr;
afs_int32 flags;
int
bc_DeleteVolEntryCmd(struct cmd_syndesc *as, void *arock)
{
- register int code;
+ int code;
afs_int32 entry;
char *vsname;
udbClientTextP ctPtr;
bc_DeleteVolSetCmd(struct cmd_syndesc *as, void *arock)
{
/* parm 0 is vol set name */
- register int code;
- register struct cmd_item *ti;
+ int code;
+ struct cmd_item *ti;
udbClientTextP ctPtr;
afs_int32 c;
afs_int32 flags, tosave = 0;
bc_ListVolSetCmd(struct cmd_syndesc *as, void *arock)
{
/* parm 0 is optional volume set to display */
- register struct bc_volumeSet *tset;
- register struct cmd_item *ti;
+ struct bc_volumeSet *tset;
+ struct cmd_item *ti;
int code = 0;
code = bc_UpdateVolumeSet();
char vsname[256]; /*Volume set name */
char serverName[256]; /*Server name */
char partName[256]; /*Partition name */
- register struct bc_volumeEntry *tve; /*Ptr to generated volume spec struct */
- register struct bc_volumeSet *tvs = NULL; /*Ptr to volume set struct */
+ struct bc_volumeEntry *tve; /*Ptr to generated volume spec struct */
+ struct bc_volumeSet *tvs = NULL; /*Ptr to volume set struct */
struct bc_volumeEntry **ppve, *pve;
struct bc_volumeSet **ppvs, *pvs;
- register afs_int32 code; /*Generalized return code */
+ afs_int32 code; /*Generalized return code */
char *tp; /*Result of fgets(), malloc() */
int readHeader; /*Is next thing to read a volume set hdr? */
udbClientTextP ctPtr;
- register FILE *stream;
- struct bc_config *configPtr;
+ FILE *stream;
extern struct bc_config *bc_globalConfig;
ctPtr = &bc_globalConfig->configText[TB_VOLUMESET];
stream = ctPtr->textStream;
- configPtr = bc_globalConfig;
/*
* Open up the volume set configuration file, fail if it can't be done.
tvs->next = (struct bc_volumeSet *)0;
} /*r */
else { /*e */
- /* Scan a volume name entry, which contains the server name,
+ /* Scan a volume name entry, which contains the server name,
* partition pattern, and volume pattern.
*/
code = sscanf(tbuffer, "%s %s %s", serverName, partName, vsname);
continue;
}
- /* The line just read in is a volume spec. Create a new volume
- * spec record, then get the rest of the information regarding
+ /* The line just read in is a volume spec. Create a new volume
+ * spec record, then get the rest of the information regarding
* the host, and stuff everything into place.
*/
tve = (struct bc_volumeEntry *)
}
} /*forever loop */
- /* If we hit an EOF in the middle of a volume set record, we bitch and
+ /* If we hit an EOF in the middle of a volume set record, we bitch and
* moan.
*/
if (!readHeader)
int
bc_SaveVolumeSet(void)
{
- register afs_int32 code = 0;
- register struct bc_volumeSet *tset;
- register struct bc_volumeEntry *tentry;
+ afs_int32 code = 0;
+ struct bc_volumeSet *tset;
+ struct bc_volumeEntry *tentry;
udbClientTextP ctPtr;
- register FILE *stream;
- struct bc_config *configPtr;
+ FILE *stream;
extern struct bc_config *bc_globalConfig;
ctPtr = &bc_globalConfig->configText[TB_VOLUMESET];
stream = ctPtr->textStream;
- configPtr = bc_globalConfig;
/* must be locked */
if (ctPtr->lockHandle == 0)