2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
11 * afs_init.c - initialize AFS client.
16 #include <afsconfig.h>
17 #include "afs/param.h"
21 #include "afs/sysincludes.h" /* Standard vendor system headers */
22 #include "afsincludes.h" /* Afs-based standard headers */
23 #include "afs/afs_stats.h" /* afs statistics */
24 #include "rx/rxstat.h"
26 #define FSINT_COMMON_XG
27 #include "afs/afscbint.h"
29 /* Exported variables */
30 struct osi_dev cacheDev; /*Cache device */
31 afs_int32 cacheInfoModTime; /*Last time cache info modified */
32 #if defined(AFS_OSF_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV)
33 struct mount *afs_cacheVfsp = 0;
34 #elif defined(AFS_LINUX20_ENV)
35 struct super_block *afs_cacheSBp = 0;
37 struct vfs *afs_cacheVfsp = 0;
39 afs_rwlock_t afs_puttofileLock; /* not used */
40 char *afs_sysname = 0; /* So that superuser may change the
41 * local value of @sys */
42 char *afs_sysnamelist[MAXNUMSYSNAMES]; /* For support of a list of sysname */
43 int afs_sysnamecount = 0;
44 int afs_sysnamegen = 0;
45 struct volume *Initialafs_freeVolList;
46 int afs_memvolumes = 0;
47 #if defined(AFS_XBSD_ENV)
48 static struct vnode *volumeVnode;
50 #if defined(AFS_DISCON_ENV)
51 afs_rwlock_t afs_discon_lock;
52 extern afs_rwlock_t afs_disconDirtyLock;
55 /* This is the kernel side of the dynamic vcache setting */
56 int afsd_dynamic_vcaches = 0; /* Enable dynamic-vcache support */
59 * Initialization order is important. Must first call afs_CacheInit,
60 * then cache file and volume file initialization routines. Next, the
61 * individual cache entry initialization routines are called.
71 * astatSize : The number of stat cache (vnode) entries to
73 * afiles : The number of disk files to allocate to the cache
74 * ablocks : The max number of 1 Kbyte blocks that all of
75 * the files in the cache may occupy.
76 * aDentries : Number of dcache entries to allocate.
77 * aVolumes : Number of volume cache entries to allocate.
78 * achunk : Power of 2 to make the chunks.
79 * aflags : Flags passed in.
80 * inodes : max inodes to pin down in inode[]
81 * users : what should size of per-user access cache be?
84 * This routine should only be called at initialization time, since
85 * it reclaims no resources and doesn't sufficiently synchronize
86 * with other processes.
89 struct cm_initparams cm_initParams;
90 static int afs_cacheinit_flag = 0;
92 afs_CacheInit(afs_int32 astatSize, afs_int32 afiles, afs_int32 ablocks,
93 afs_int32 aDentries, afs_int32 aVolumes, afs_int32 achunk,
94 afs_int32 aflags, afs_int32 ninodes, afs_int32 nusers, afs_int32 dynamic_vcaches)
97 register struct volume *tv;
99 AFS_STATCNT(afs_CacheInit);
101 * Jot down the epoch time, namely when this incarnation of the
102 * Cache Manager started.
104 afs_stats_cmperf.epoch = pag_epoch = osi_Time();
106 afs_stats_cmperf.sysName_ID = SYS_NAME_ID;
108 afs_stats_cmperf.sysName_ID = SYS_NAME_ID_UNDEFINED;
109 #endif /* SYS_NAME_ID */
111 #ifdef AFS_MAXVCOUNT_ENV
112 afsd_dynamic_vcaches = dynamic_vcaches;
113 printf("%s dynamically allocated vcaches\n", ( afsd_dynamic_vcaches ? "enabling" : "disabling" ));
115 afsd_dynamic_vcaches = 0;
118 printf("Starting AFS cache scan...");
119 if (afs_cacheinit_flag)
121 afs_cacheinit_flag = 1;
122 cacheInfoModTime = 0;
127 LOCK_INIT(&afs_ftf, "afs_ftf");
128 AFS_RWLOCK_INIT(&afs_xaxs, "afs_xaxs");
129 #ifdef AFS_DISCON_ENV
130 AFS_RWLOCK_INIT(&afs_discon_lock, "afs_discon_lock");
131 AFS_RWLOCK_INIT(&afs_disconDirtyLock, "afs_disconDirtyLock");
132 QInit(&afs_disconDirty);
133 QInit(&afs_disconShadow);
138 * create volume list structure
142 else if (aVolumes > 32767)
145 tv = (struct volume *)afs_osi_Alloc(aVolumes * sizeof(struct volume));
146 for (i = 0; i < aVolumes - 1; i++)
147 tv[i].next = &tv[i + 1];
148 tv[aVolumes - 1].next = NULL;
149 afs_freeVolList = Initialafs_freeVolList = tv;
150 afs_memvolumes = aVolumes;
152 afs_cacheFiles = afiles;
153 afs_cacheStats = astatSize;
154 afs_vcacheInit(astatSize);
155 afs_dcacheInit(afiles, ablocks, aDentries, achunk, aflags);
156 #ifdef AFS_64BIT_CLIENT
157 #ifdef AFS_VM_RDWR_ENV
158 afs_vmMappingEnd = AFS_CHUNKBASE(0x7fffffff);
159 #endif /* AFS_VM_RDWR_ENV */
160 #endif /* AFS_64BIT_CLIENT */
162 #if defined(AFS_AIX_ENV) && !defined(AFS_AIX51_ENV)
164 static void afs_procsize_init(void);
170 /* Save the initialization parameters for later pioctl queries. */
171 cm_initParams.cmi_version = CMI_VERSION;
172 cm_initParams.cmi_nChunkFiles = afiles;
173 cm_initParams.cmi_nStatCaches = astatSize;
174 cm_initParams.cmi_nDataCaches = aDentries;
175 cm_initParams.cmi_nVolumeCaches = aVolumes;
176 cm_initParams.cmi_firstChunkSize = AFS_FIRSTCSIZE;
177 cm_initParams.cmi_otherChunkSize = AFS_OTHERCSIZE;
178 cm_initParams.cmi_cacheSize = afs_cacheBlocks;
179 cm_initParams.cmi_setTime = afs_setTime;
180 cm_initParams.cmi_memCache = (aflags & AFSCALL_INIT_MEMCACHE) ? 1 : 0;
188 * afs_ComputeCacheParams
191 * Set some cache parameters.
198 afs_ComputeCacheParms(void)
200 register afs_int32 i;
201 afs_int32 afs_maxCacheDirty;
204 * Don't allow more than 2/3 of the files in the cache to be dirty.
206 afs_maxCacheDirty = (2 * afs_cacheFiles) / 3;
209 * Also, don't allow more than 2/3 of the total space get filled
210 * with dirty chunks. Compute the total number of chunks required
211 * to fill the cache, make sure we don't set out limit above 2/3 of
212 * that. If the cache size is greater than 1G, avoid overflow at
213 * the expense of precision on the chunk size.
215 if (afs_cacheBlocks & 0xffe00000) {
216 i = afs_cacheBlocks / (AFS_FIRSTCSIZE >> 10);
218 i = (afs_cacheBlocks << 10) / AFS_FIRSTCSIZE;
221 if (afs_maxCacheDirty > i)
222 afs_maxCacheDirty = i;
223 if (afs_maxCacheDirty < 1)
224 afs_maxCacheDirty = 1;
225 afs_stats_cmperf.cacheMaxDirtyChunks = afs_maxCacheDirty;
226 } /*afs_ComputeCacheParms */
230 * afs_LookupInodeByPath
232 * Look up inode given a file name.
233 * Optionally return the vnode too.
234 * If the vnode is not returned, we rele it.
237 afs_LookupInodeByPath(char *filename, afs_ufs_dcache_id_t *inode, struct vnode **fvpp)
241 #if defined(AFS_LINUX22_ENV)
243 code = gop_lookupname(filename, AFS_UIOSYS, 0, &dp);
246 osi_get_fh(dp, inode);
249 struct vnode *filevp;
250 code = gop_lookupname(filename, AFS_UIOSYS, 0, &filevp);
253 *inode = afs_vnodeToInumber(filevp);
265 afs_InitCellInfo(char *afile)
267 afs_dcache_id_t inode;
270 #ifdef AFS_CACHE_VNODE_PATH
271 inode.ufs = AFS_CACHE_CELLS_INODE;
273 code = afs_LookupInodeByPath(afile, &inode.ufs, NULL);
275 return afs_cellname_init(&inode, code);
282 * Set up the volume info storage file.
285 * afile : the file to be declared to be the volume info storage
286 * file for AFS. It must be already truncated to 0 length.
289 * This function is called only during initialization.
291 * WARNING: Data will be written to this file over time by AFS.
295 afs_InitVolumeInfo(char *afile)
298 struct osi_file *tfile;
300 AFS_STATCNT(afs_InitVolumeInfo);
301 #if defined(AFS_XBSD_ENV)
303 * On Open/Free/NetBSD, we can get into big trouble if we don't hold the volume file
304 * vnode. SetupVolume holds afs_xvolume lock exclusive.
305 * SetupVolume->GetVolSlot->UFSGetVolSlot->{GetVolCache or WriteVolCache}
306 * ->osi_UFSOpen->VFS_VGET()->ffs_vget->getnewvnode->vgone on some vnode.
307 * If it's AFS, then ->vclean->afs_nbsd_reclaim->FlushVCache->QueueVCB->
308 * GetVolume->FindVolume-> waits on afs_xvolume lock !
310 * In general, anything that's called with afs_xvolume locked must not
311 * end up calling getnewvnode(). The only cases I've found so far
312 * are things which try to get the volumeInode, and since we keep
315 code = afs_LookupInodeByPath(afile, &volumeInode.ufs, &volumeVnode);
316 #elif defined(AFS_CACHE_VNODE_PATH)
317 volumeInode.ufs = AFS_CACHE_VOLUME_INODE;
319 code = afs_LookupInodeByPath(afile, &volumeInode.ufs, NULL);
323 tfile = afs_CFileOpen(&volumeInode);
324 afs_CFileTruncate(tfile, 0);
325 afs_CFileClose(tfile);
333 * Set up the given file as the AFS cache info file.
336 * afile : Name of the file assumed to be the cache info file
337 * for the Cache Manager; it will be used as such.
338 * Side Effects: This sets afs_fragsize, which is used in the cache usage
339 * calculations such as in afs_adjustsize()
342 * This function is called only during initialization. The given
343 * file should NOT be truncated to 0 lenght; its contents descrebe
344 * what data is really in the cache.
346 * WARNING: data will be written to this file over time by AFS.
348 * NOTE: Starting to use separate osi_InitCacheInfo() routines to clean up
353 afs_InitCacheInfo(register char *afile)
355 register afs_int32 code;
356 struct osi_stat tstat;
357 register struct osi_file *tfile;
358 struct afs_fheader theader;
359 #ifndef AFS_LINUX22_ENV
360 struct vnode *filevp;
364 AFS_STATCNT(afs_InitCacheInfo);
365 if (cacheDiskType != AFS_FCACHE_TYPE_UFS)
366 osi_Panic("afs_InitCacheInfo --- called for non-ufs cache!");
367 #ifdef AFS_LINUX22_ENV
368 code = osi_InitCacheInfo(afile);
372 code = gop_lookupname(afile, AFS_UIOSYS, 0, &filevp);
376 #if defined(AFS_SUN56_ENV)
378 #elif defined(AFS_HPUX102_ENV)
380 #elif defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV) ||defined(AFS_HPUX100_ENV)
382 #elif defined(AFS_DUX40_ENV)
384 #elif defined(AFS_DARWIN80_ENV)
390 #if defined(AFS_SGI_ENV)
392 VFS_STATVFS(filevp->v_vfsp, &st, NULL, code);
395 if (!VFS_STATFS(filevp->v_vfsp, &st, NULL))
396 #endif /* AFS_SGI65_ENV */
397 #elif defined(AFS_SUN5_ENV) || defined(AFS_HPUX100_ENV)
398 if (!VFS_STATVFS(filevp->v_vfsp, &st))
399 #elif defined(AFS_OSF_ENV)
401 VFS_STATFS(filevp->v_vfsp, code);
403 st = filevp->v_vfsp->m_stat;
405 #elif defined(AFS_AIX41_ENV)
406 if (!VFS_STATFS(filevp->v_vfsp, &st, &afs_osi_cred))
407 #elif defined(AFS_LINUX20_ENV)
412 VFS_STATFS(filevp->v_vfsp, &st);
415 #elif defined(AFS_DARWIN80_ENV)
416 afs_cacheVfsp = vnode_mount(filevp);
417 if (afs_cacheVfsp && ((st = *(vfs_statfs(afs_cacheVfsp))),1))
418 #elif defined(AFS_DARWIN_ENV)
419 if (!VFS_STATFS(filevp->v_mount, &st, current_proc()))
420 #elif defined(AFS_FBSD50_ENV)
421 if (!VFS_STATFS(filevp->v_mount, &st, curthread))
422 #elif defined(AFS_XBSD_ENV)
423 if (!VFS_STATFS(filevp->v_mount, &st, curproc))
425 if (!VFS_STATFS(filevp->v_vfsp, &st))
427 #if defined(AFS_SUN5_ENV) || defined(AFS_HPUX100_ENV)
428 afs_fsfragsize = st.f_frsize - 1;
430 afs_fsfragsize = st.f_bsize - 1;
433 #if defined(AFS_LINUX20_ENV)
434 cacheInode.ufs = filevp->i_ino;
435 afs_cacheSBp = filevp->i_sb;
436 #elif defined(AFS_XBSD_ENV)
437 cacheInode.ufs = VTOI(filevp)->i_number;
438 cacheDev.mp = filevp->v_mount;
439 cacheDev.held_vnode = filevp;
440 vref(filevp); /* Make sure mount point stays busy. XXX */
441 #if !defined(AFS_OBSD_ENV)
442 afs_cacheVfsp = filevp->v_vfsp;
445 #if defined(AFS_SGI62_ENV) || defined(AFS_HAVE_VXFS) || defined(AFS_DARWIN_ENV)
446 afs_InitDualFSCacheOps(filevp);
448 #ifndef AFS_CACHE_VNODE_PATH
449 #ifndef AFS_DARWIN80_ENV
450 afs_cacheVfsp = filevp->v_vfsp;
452 cacheInode.ufs = afs_vnodeToInumber(filevp);
454 cacheInode.ufs = AFS_CACHE_ITEMS_INODE;
456 cacheDev.dev = afs_vnodeToDev(filevp);
457 #endif /* AFS_LINUX20_ENV */
459 #endif /* AFS_LINUX22_ENV */
460 if (afs_fsfragsize < AFS_MIN_FRAGSIZE) {
461 afs_fsfragsize = AFS_MIN_FRAGSIZE;
463 tfile = osi_UFSOpen(&cacheInode);
464 afs_osi_Stat(tfile, &tstat);
465 cacheInfoModTime = tstat.mtime;
466 code = afs_osi_Read(tfile, -1, &theader, sizeof(theader));
468 if (code == sizeof(theader)) {
469 /* read the header correctly */
470 if (theader.magic == AFS_FHMAGIC
471 && theader.firstCSize == AFS_FIRSTCSIZE
472 && theader.otherCSize == AFS_OTHERCSIZE
473 && theader.version == AFS_CI_VERSION)
477 /* write out a good file label */
478 theader.magic = AFS_FHMAGIC;
479 theader.firstCSize = AFS_FIRSTCSIZE;
480 theader.otherCSize = AFS_OTHERCSIZE;
481 theader.version = AFS_CI_VERSION;
482 afs_osi_Write(tfile, 0, &theader, sizeof(theader));
484 * Truncate the rest of the file, since it may be arbitrarily
487 osi_UFSTruncate(tfile, sizeof(struct afs_fheader));
489 /* Leave the file open now, since reopening the file makes public pool
490 * vnode systems (like OSF/Alpha) much harder to handle, That's because
491 * they can do a vnode recycle operation any time we open a file, which
492 * we'd do on any afs_GetDSlot call, etc.
494 afs_cacheInodep = (struct osi_file *)tfile;
498 int afs_resourceinit_flag = 0;
500 afs_ResourceInit(int preallocs)
502 register afs_int32 i;
503 static struct rx_securityClass *secobj;
505 AFS_STATCNT(afs_ResourceInit);
506 AFS_RWLOCK_INIT(&afs_xuser, "afs_xuser");
507 AFS_RWLOCK_INIT(&afs_xvolume, "afs_xvolume");
508 AFS_RWLOCK_INIT(&afs_xserver, "afs_xserver");
509 AFS_RWLOCK_INIT(&afs_xsrvAddr, "afs_xsrvAddr");
510 AFS_RWLOCK_INIT(&afs_icl_lock, "afs_icl_lock");
511 AFS_RWLOCK_INIT(&afs_xinterface, "afs_xinterface");
512 LOCK_INIT(&afs_puttofileLock, "afs_puttofileLock");
514 LOCK_INIT(&osi_fsplock, "osi_fsplock");
515 LOCK_INIT(&osi_flplock, "osi_flplock");
517 AFS_RWLOCK_INIT(&afs_xconn, "afs_xconn");
520 afs_InitCBQueue(1); /* initialize callback queues */
522 if (afs_resourceinit_flag == 0) {
523 afs_resourceinit_flag = 1;
524 for (i = 0; i < NFENTRIES; i++)
526 for (i = 0; i < MAXNUMSYSNAMES; i++)
527 afs_sysnamelist[i] = afs_osi_Alloc(MAXSYSNAME);
528 afs_sysname = afs_sysnamelist[0];
529 strcpy(afs_sysname, SYS_NAME);
530 afs_sysnamecount = 1;
534 secobj = rxnull_NewServerSecurityObject();
536 rx_NewService(0, 1, "afs", &secobj, 1, RXAFSCB_ExecuteRequest);
538 rx_NewService(0, RX_STATS_SERVICE_ID, "rpcstats", &secobj, 1,
539 RXSTATS_ExecuteRequest);
541 afs_osi_Wakeup(&afs_server); /* wakeup anyone waiting for it */
544 } /*afs_ResourceInit */
546 #if defined(AFS_AIX_ENV) && !defined(AFS_AIX51_ENV)
549 * AIX dynamic sizeof(struct proc)
551 * AIX keeps its proc structures in an array. The size of struct proc
552 * varies from release to release of the OS. In order to maintain
553 * binary compatibility with releases later than what we build on, we
554 * need to determine the size of struct proc at run time.
556 * We need this in order to walk the proc[] array to do PAG garbage
559 * We also need this in order to support 'klog -setpag', since the
560 * kernel code needs to locate the proc structure for the parent process
561 * of the current process.
563 * To compute sizeof(struct proc), we need the addresses of two proc
564 * structures and their corresponding pids. Given the pids, we can use
565 * the PROCMASK() macro to compute their corresponding indices in the
566 * proc[] array. By dividing the distance between the pointers by the
567 * number of proc structures, we can compute the size of a single proc
570 * We know the base address of the proc table from v.vb_proc:
572 * <sys/sysconfig.h> declares sysconfig() and SYS_GETPARMS;
573 * (we don't use this, but I note it here for completeness)
575 * <sys/var.h> declares struct var and external variable v;
579 * v.ve_proc &proc[x] (current highwater mark for
580 * proc[] array usage)
582 * The first proc pointer is v.vb_proc, which is the proc structure for
583 * process 0. Process 0's pointer to its first child is the other proc
584 * pointer. If process 0 has no children, we simply give up and do not
585 * support features that require knowing the size of struct proc.
589 afs_procsize_init(void)
591 struct proc *p0; /* pointer to process 0 */
592 struct proc *pN; /* pointer to process 0's first child */
600 p0 = (struct proc *)v.vb_proc;
602 afs_gcpags = AFS_GCPAGS_EPROC0;
606 pN = (struct proc *)0;
617 afs_gcpags = AFS_GCPAGS_EPROCN;
621 if (pN->p_pid == p0->p_pid) {
622 afs_gcpags = AFS_GCPAGS_EEQPID;
626 pN_index = PROCMASK(pN->p_pid);
627 pN_offset = ((char *)pN - (char *)p0);
628 procsize = pN_offset / pN_index;
631 * check that the computation was exact
634 if (pN_index * procsize != pN_offset) {
635 afs_gcpags = AFS_GCPAGS_EINEXACT;
640 * check that the proc table size is a multiple of procsize.
643 if ((((char *)v.ve_proc - (char *)v.vb_proc) % procsize) != 0) {
644 afs_gcpags = AFS_GCPAGS_EPROCEND;
650 afs_gcpags_procsize = procsize;
658 * Clean up and shut down the AFS cache.
664 * Nothing interesting.
669 AFS_STATCNT(shutdown_cache);
670 afs_WriteThroughDSlots();
671 if (afs_cold_shutdown) {
672 afs_cacheinit_flag = 0;
677 afs_cacheFiles = afs_cacheBlocks = 0;
678 pag_epoch = maxIHint = nihints = usedihint = 0;
680 #if defined(AFS_XBSD_ENV)
681 vrele(volumeVnode); /* let it go, finally. */
683 if (cacheDev.held_vnode) {
684 vrele(cacheDev.held_vnode);
685 cacheDev.held_vnode = NULL;
688 afs_reset_inode(&cacheInode);
689 afs_reset_inode(&volumeInode);
690 cacheInfoModTime = 0;
692 afs_fsfragsize = 1023;
693 memset((char *)&afs_stats_cmperf, 0, sizeof(afs_stats_cmperf));
694 memset((char *)&cacheDev, 0, sizeof(struct osi_dev));
697 } /*shutdown_cache */
701 shutdown_vnodeops(void)
703 #if !defined(AFS_SGI_ENV) && !defined(AFS_SUN5_ENV)
704 struct buf *afs_bread_freebp = 0;
708 AFS_STATCNT(shutdown_vnodeops);
709 if (afs_cold_shutdown) {
710 #ifndef AFS_SUN5_ENV /* XXX */
713 #ifndef AFS_LINUX20_ENV
716 #if !defined(AFS_SGI_ENV) && !defined(AFS_SUN5_ENV)
717 afs_bread_freebp = 0;
728 register struct srvAddr *sa;
730 AFS_STATCNT(shutdown_AFS);
731 if (afs_cold_shutdown) {
732 afs_resourceinit_flag = 0;
734 * Free Volumes table allocations
738 for (i = 0; i < NVOLS; i++) {
739 for (tv = afs_volumes[i]; tv; tv = tv->next) {
741 afs_osi_Free(tv->name, strlen(tv->name) + 1);
750 * Free FreeVolList allocations
752 afs_osi_Free(Initialafs_freeVolList,
753 afs_memvolumes * sizeof(struct volume));
754 afs_freeVolList = Initialafs_freeVolList = 0;
756 /* XXX HACK fort MEM systems XXX
758 * For -memcache cache managers when we run out of free in memory volumes
759 * we simply malloc more; we won't be able to free those additional volumes.
765 * Free Users table allocation
768 struct unixuser *tu, *ntu;
769 for (i = 0; i < NUSERS; i++) {
770 for (tu = afs_users[i]; tu; tu = ntu) {
773 afs_osi_Free(tu->stp, tu->stLen);
775 EXP_RELE(tu->exporter);
776 afs_osi_Free(tu, sizeof(struct unixuser));
783 * Free Servers table allocation
786 struct server *ts, *nts;
787 struct afs_conn *tc, *ntc;
788 register struct afs_cbr *tcbrp, *tbrp;
790 for (i = 0; i < NSERVERS; i++) {
791 for (ts = afs_servers[i]; ts; ts = nts) {
793 for (sa = ts->addr; sa; sa = sa->next_sa) {
796 * Free all server's connection structs
802 rx_DestroyConnection(tc->id);
804 afs_osi_Free(tc, sizeof(struct afs_conn));
809 for (tcbrp = ts->cbrs; tcbrp; tcbrp = tbrp) {
811 * Free all server's callback structs
816 afs_osi_Free(ts, sizeof(struct server));
821 for (i = 0; i < NFENTRIES; i++)
823 /* Reinitialize local globals to defaults */
824 for (i = 0; i < MAXNUMSYSNAMES; i++)
825 afs_osi_Free(afs_sysnamelist[i], MAXSYSNAME);
827 afs_sysnamecount = 0;
829 afs_setTimeHost = NULL;
831 afs_waitForever = afs_waitForeverCount = 0;
833 afs_server = (struct rx_service *)0;
834 AFS_RWLOCK_INIT(&afs_xconn, "afs_xconn");
835 memset((char *)&afs_rootFid, 0, sizeof(struct VenusFid));
836 AFS_RWLOCK_INIT(&afs_xuser, "afs_xuser");
837 AFS_RWLOCK_INIT(&afs_xvolume, "afs_xvolume");
838 AFS_RWLOCK_INIT(&afs_xserver, "afs_xserver");
839 LOCK_INIT(&afs_puttofileLock, "afs_puttofileLock");