* defined when not linked with vice, XXXX */
ProgramType programType; /* The type of program using the package */
-
#define VOLUME_BITMAP_GROWSIZE 16 /* bytes, => 128vnodes */
/* Must be a multiple of 4 (1 word) !! */
#define VOLUME_HASH_TABLE_SIZE 128 /* Must be a power of 2!! */
#endif /* AFS_PTHREAD_ENV */
Lock_Init(&vol_listLock);
Lock_Init(&FSYNC_handler_lock);
+
srandom(time(0)); /* For VGetVolumeInfo */
gettimeofday(&tv, &tz);
TimeZoneCorrection = tz.tz_minuteswest * 60;
#define VolserVersion "2.0"
#define N_SECURITY_OBJECTS 3
+extern struct Lock localLock;
extern struct volser_trans *TransList();
#ifndef AFS_PTHREAD_ENV
extern int (*vol_PollProc) ();
}
#endif
VInitVolumePackage(volumeUtility, 0, 0, CONNECT_FS, 0);
+ /* For nuke() */
+ Lock_Init(&localLock);
DInit(40);
#ifndef AFS_PTHREAD_ENV
vol_PollProc = IOMGR_Poll; /* tell vol pkg to poll io system periodically */