]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
vol-init-locallock-20060824
authorJeffrey Hutzelman <jhutz@cmu.edu>
Thu, 24 Aug 2006 21:18:56 +0000 (21:18 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 24 Aug 2006 21:18:56 +0000 (21:18 +0000)
we never init this. oops.

src/vol/volume.c
src/volser/volmain.c

index c61013b9696d2cfea67b1f6dfd1c338ccaa3e1d9..52bd60c68df981036c9b014abf9d6d293dde9e21 100644 (file)
@@ -201,7 +201,6 @@ int LogLevel;                       /* Vice loglevel--not defined as extern so that it will be
                                 * defined when not linked with vice, XXXX */
 ProgramType programType;       /* The type of program using the package */
 
-
 /* extended volume package statistics */
 VolPkgStats VStats;
 
index cef3762b448d7e0ea505e110b8a553bab4affc5d..215a90d9184428b73f01deadd218018177bfff35 100644 (file)
@@ -73,6 +73,7 @@ RCSID
 #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) ();
@@ -423,6 +424,8 @@ main(int argc, char **argv)
     }
 #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 */