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/stds.h"
22 #include "../afs/sysincludes.h" /* Standard vendor system headers */
23 #include "../afs/afsincludes.h" /* Afs-based standard headers */
24 #include "../afs/afs_stats.h" /* afs statistics */
27 /* Imported variables */
28 extern afs_int32 afs_waitForever;
29 extern short afs_waitForeverCount;
30 extern afs_int32 afs_FVIndex;
31 extern struct server *afs_setTimeHost;
32 extern struct server *afs_servers[NSERVERS];
33 extern struct unixuser *afs_users[NUSERS];
34 extern struct volume *afs_freeVolList;
35 extern struct volume *afs_volumes[NVOLS];
36 extern afs_int32 afs_volCounter;
38 extern afs_rwlock_t afs_xaxs;
39 extern afs_rwlock_t afs_xvolume;
40 extern afs_rwlock_t afs_xuser;
41 extern afs_rwlock_t afs_xserver;
43 extern afs_lock_t osi_fsplock;
45 extern afs_lock_t osi_flplock;
46 extern afs_int32 fvTable[NFENTRIES];
49 extern afs_rwlock_t afs_xcell;
50 extern struct afs_q CellLRU;
51 extern afs_int32 afs_cellindex;
52 extern afs_int32 afs_nextCellNum;
55 extern afs_rwlock_t afs_xconn;
56 extern afs_rwlock_t afs_xinterface;
59 extern struct rx_service *afs_server;
63 extern afs_int32 afs_mariner;
64 extern afs_int32 afs_marinerHost;
67 extern ino_t volumeInode;
70 extern afs_uint32 pag_epoch;
73 extern afs_rwlock_t afs_xdcache;
74 extern int cacheDiskType;
75 extern afs_int32 afs_fsfragsize;
76 extern ino_t cacheInode;
77 extern struct osi_file *afs_cacheInodep;
78 extern afs_int32 afs_freeDCList; /*Free list for disk cache entries*/
82 extern afs_rwlock_t afs_xvcache;
83 extern afs_rwlock_t afs_xvcb;
85 /* VNOPS/afs_vnop_read.c */
86 extern afs_int32 maxIHint;
87 extern afs_int32 nihints; /* # of above actually in-use */
88 extern afs_int32 usedihint;
91 extern afs_int32 afs_setTime;
93 /* Imported functions. */
94 extern struct rx_securityClass *rxnull_NewServerSecurityObject();
95 extern int RXAFSCB_ExecuteRequest();
96 extern int RXSTATS_ExecuteRequest();
100 extern afs_lock_t afs_ftf;
102 /* Exported variables */
103 struct osi_dev cacheDev; /*Cache device*/
104 afs_int32 cacheInfoModTime; /*Last time cache info modified*/
105 #if defined(AFS_OSF_ENV) || defined(AFS_DEC_ENV) || defined(AFS_DARWIN_ENV)
106 struct mount *afs_cacheVfsp=0;
107 #elif defined(AFS_LINUX20_ENV)
108 struct super_block *afs_cacheSBp = 0;
110 struct vfs *afs_cacheVfsp=0;
112 afs_rwlock_t afs_puttofileLock; /* not used */
113 char *afs_sysname = 0; /* So that superuser may change the
114 * local value of @sys */
115 char *afs_sysnamelist[MAXNUMSYSNAMES]; /* For support of a list of sysname */
116 int afs_sysnamecount = 0;
117 struct volume *Initialafs_freeVolList;
118 int afs_memvolumes = 0;
120 /* Local variables */
124 * Initialization order is important. Must first call afs_CacheInit,
125 * then cache file and volume file initialization routines. Next, the
126 * individual cache entry initialization routines are called.
136 * astatSize : The number of stat cache (vnode) entries to
138 * afiles : The number of disk files to allocate to the cache
139 * ablocks : The max number of 1 Kbyte blocks that all of
140 * the files in the cache may occupy.
141 * aDentries : Number of dcache entries to allocate.
142 * aVolumes : Number of volume cache entries to allocate.
143 * achunk : Power of 2 to make the chunks.
144 * aflags : Flags passed in.
145 * inodes : max inodes to pin down in inode[]
146 * users : what should size of per-user access cache be?
149 * This routine should only be called at initialization time, since
150 * it reclaims no resources and doesn't sufficiently synchronize
151 * with other processes.
154 struct cm_initparams cm_initParams;
155 static int afs_cacheinit_flag = 0;
157 afs_CacheInit(astatSize, afiles, ablocks, aDentries, aVolumes, achunk, aflags,
160 afs_int32 astatSize, ablocks;
161 afs_int32 achunk, aflags, ninodes, nusers;
164 extern int afs_memvolumes;
165 register afs_int32 i, preallocs;
166 register struct volume *tv;
169 AFS_STATCNT(afs_CacheInit);
171 * Jot down the epoch time, namely when this incarnation of the
172 * Cache Manager started.
174 afs_stats_cmperf.epoch = pag_epoch = osi_Time();
176 afs_stats_cmperf.sysName_ID = SYS_NAME_ID;
178 afs_stats_cmperf.sysName_ID = SYS_NAME_ID_UNDEFINED;
179 #endif /* SYS_NAME_ID */
181 printf("Starting AFS cache scan...");
182 if (afs_cacheinit_flag)
184 afs_cacheinit_flag = 1;
185 cacheInfoModTime = 0;
190 LOCK_INIT(&afs_ftf, "afs_ftf");
191 RWLOCK_INIT(&afs_xaxs, "afs_xaxs");
195 #if defined(AFS_AIX32_ENV) || defined(AFS_HPUX_ENV)
197 * We want to also reserve space for the gnode struct which is associated
198 * with each vnode (vcache) one; we want to use the pinned pool for them
199 * since they're referenced at interrupt level.
201 if (afs_stats_cmperf.SmallBlocksAlloced + astatSize < 3600)
202 preallocs = astatSize;
204 preallocs = 3600 - afs_stats_cmperf.SmallBlocksAlloced;
205 if (preallocs <= 0) preallocs = 10;
207 osi_AllocMoreSSpace(preallocs);
210 * create volume list structure
212 if ( aVolumes < 50 ) aVolumes = 50;
213 if (aVolumes > 3000) aVolumes = 3000;
215 tv = (struct volume *) afs_osi_Alloc(aVolumes * sizeof(struct volume));
216 for (i=0;i<aVolumes-1;i++)
217 tv[i].next = &tv[i+1];
218 tv[aVolumes-1].next = (struct volume *) 0;
219 afs_freeVolList = Initialafs_freeVolList = tv;
220 afs_memvolumes = aVolumes;
222 afs_cacheFiles = afiles;
223 afs_cacheStats = astatSize;
224 afs_vcacheInit(astatSize);
225 afs_dcacheInit(afiles, ablocks, aDentries, achunk, aflags);
227 #if defined(AFS_AIX_ENV)
229 static void afs_procsize_init(void);
235 /* Save the initialization parameters for later pioctl queries. */
236 cm_initParams.cmi_version = CMI_VERSION;
237 cm_initParams.cmi_nChunkFiles = afiles;
238 cm_initParams.cmi_nStatCaches = astatSize;
239 cm_initParams.cmi_nDataCaches = aDentries;
240 cm_initParams.cmi_nVolumeCaches = aVolumes;
241 cm_initParams.cmi_firstChunkSize = AFS_FIRSTCSIZE;
242 cm_initParams.cmi_otherChunkSize = AFS_OTHERCSIZE;
243 cm_initParams.cmi_cacheSize = ablocks;
244 cm_initParams.cmi_setTime = afs_setTime;
245 cm_initParams.cmi_memCache = (aflags & AFSCALL_INIT_MEMCACHE) ? 1 : 0;
253 * afs_ComputeCacheParams
256 * Set some cache parameters.
263 afs_ComputeCacheParms()
265 { /*afs_ComputeCacheParms*/
267 register afs_int32 i;
268 afs_int32 afs_maxCacheDirty;
271 * Don't allow more than 2/3 of the files in the cache to be dirty.
273 afs_maxCacheDirty = (2*afs_cacheFiles) / 3;
276 * Also, don't allow more than 2/3 of the total space get filled
277 * with dirty chunks. Compute the total number of chunks required
278 * to fill the cache, make sure we don't set out limit above 2/3 of
279 * that. If the cache size is greater than 1G, avoid overflow at
280 * the expense of precision on the chunk size.
282 if (afs_cacheBlocks & 0xffe00000) {
283 i = afs_cacheBlocks / (AFS_FIRSTCSIZE >> 10);
286 i = (afs_cacheBlocks << 10) / AFS_FIRSTCSIZE;
289 if (afs_maxCacheDirty > i)
290 afs_maxCacheDirty = i;
291 if (afs_maxCacheDirty < 1)
292 afs_maxCacheDirty = 1;
293 afs_stats_cmperf.cacheMaxDirtyChunks = afs_maxCacheDirty;
294 } /*afs_ComputeCacheParms*/
301 * Set up the volume info storage file.
304 * afile : the file to be declared to be the volume info storage
305 * file for AFS. It must be already truncated to 0 length.
308 * This function is called only during initialization.
310 * WARNING: Data will be written to this file over time by AFS.
313 afs_InitVolumeInfo(afile)
314 register char *afile;
316 { /*afs_InitVolumeInfo*/
319 struct osi_file *tfile;
320 struct vnode *filevp;
323 AFS_STATCNT(afs_InitVolumeInfo);
324 #ifdef AFS_LINUX22_ENV
327 code = gop_lookupname(afile, AFS_UIOSYS, 0, (struct vnode **) 0, &dp);
328 if (code) return ENOENT;
329 fce.inode = volumeInode = dp->d_inode->i_ino;
333 code = gop_lookupname(afile, AFS_UIOSYS, 0, (struct vnode **) 0, &filevp);
334 if (code) return ENOENT;
335 fce.inode = volumeInode = afs_vnodeToInumber(filevp);
339 AFS_RELE((struct vnode *)filevp);
341 #endif /* AFS_LINUX22_ENV */
342 tfile = afs_CFileOpen(fce.inode);
343 afs_CFileTruncate(tfile, 0);
344 afs_CFileClose(tfile);
347 } /*afs_InitVolumeInfo*/
353 * Set up the given file as the AFS cache info file.
356 * afile : Name of the file assumed to be the cache info file
357 * for the Cache Manager; it will be used as such.
358 * Side Effects: This sets afs_fragsize, which is used in the cache usage
359 * calculations such as in afs_adjustsize()
362 * This function is called only during initialization. The given
363 * file should NOT be truncated to 0 lenght; its contents descrebe
364 * what data is really in the cache.
366 * WARNING: data will be written to this file over time by AFS.
368 * NOTE: Starting to use separate osi_InitCacheInfo() routines to clean up
372 afs_InitCacheInfo(afile)
373 register char *afile;
375 { /*afs_InitCacheInfo*/
377 register afs_int32 code;
378 struct osi_stat tstat;
379 register struct osi_file *tfile;
380 struct afs_fheader theader;
381 struct vnode *filevp;
384 AFS_STATCNT(afs_InitCacheInfo);
385 if(cacheDiskType != AFS_FCACHE_TYPE_UFS)
386 osi_Panic("afs_InitCacheInfo --- called for non-ufs cache!");
387 #ifdef AFS_LINUX22_ENV
388 code = osi_InitCacheInfo(afile);
389 if (code) return code;
391 code = gop_lookupname(afile, AFS_UIOSYS, 0, (struct vnode **) 0, &filevp);
392 if (code || !filevp) return ENOENT;
394 #if defined(AFS_SUN56_ENV)
397 #if defined(AFS_HPUX102_ENV)
400 #if defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV) ||defined(AFS_HPUX100_ENV)
403 #if defined(AFS_DUX40_ENV)
408 #endif /* SUN5 SGI */
409 #endif /* HP 10.20 */
412 #if defined(AFS_SGI_ENV)
414 VFS_STATVFS(filevp->v_vfsp, &st, (struct vnode *)0, code);
417 if (!VFS_STATFS(filevp->v_vfsp, &st, (struct vnode *)0))
418 #endif /* AFS_SGI65_ENV */
419 #else /* AFS_SGI_ENV */
420 #if defined(AFS_SUN5_ENV) || defined(AFS_HPUX100_ENV)
421 if (!VFS_STATVFS(filevp->v_vfsp, &st))
425 VFS_STATFS(filevp->v_vfsp, code);
427 st = filevp->v_vfsp->m_stat;
429 #else /* AFS_OSF_ENV */
431 if (!VFS_STATFS(filevp->v_vfsp, &st, &afs_osi_cred))
433 #ifdef AFS_LINUX20_ENV
438 VFS_STATFS(filevp->v_vfsp, &st);
442 #if defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV)
443 if (!VFS_STATFS(filevp->v_mount, &st, current_proc()))
445 if (!VFS_STATFS(filevp->v_vfsp, &st))
446 #endif /* AFS_DARWIN_ENV || AFS_FBSD_ENV */
447 #endif /* AFS_LINUX20_ENV */
450 #endif /* SUN5 HP10 */
452 #if defined(AFS_SUN5_ENV) || defined(AFS_HPUX100_ENV)
453 afs_fsfragsize = st.f_frsize - 1;
455 afs_fsfragsize = st.f_bsize - 1;
458 #ifdef AFS_LINUX20_ENV
459 cacheInode = filevp->i_ino;
460 afs_cacheSBp = filevp->i_sb;
462 #if defined(AFS_SGI62_ENV) || defined(AFS_HAVE_VXFS) || defined(AFS_DARWIN_ENV)
463 afs_InitDualFSCacheOps(filevp);
465 cacheInode = afs_vnodeToInumber(filevp);
466 cacheDev.dev = afs_vnodeToDev(filevp);
467 afs_cacheVfsp = filevp->v_vfsp;
468 #endif /* AFS_LINUX20_ENV */
469 AFS_RELE((struct vnode *)filevp);
470 #endif /* AFS_LINUX22_ENV */
471 tfile = osi_UFSOpen(cacheInode);
472 afs_osi_Stat(tfile, &tstat);
473 cacheInfoModTime = tstat.mtime;
474 code = afs_osi_Read(tfile, -1, &theader, sizeof(theader));
476 if (code == sizeof(theader)) {
477 /* read the header correctly */
478 if (theader.magic == AFS_FHMAGIC &&
479 theader.firstCSize == AFS_FIRSTCSIZE &&
480 theader.otherCSize == AFS_OTHERCSIZE &&
481 theader.version == AFS_CI_VERSION
486 /* write out a good file label */
487 theader.magic = AFS_FHMAGIC;
488 theader.firstCSize = AFS_FIRSTCSIZE;
489 theader.otherCSize = AFS_OTHERCSIZE;
490 theader.version = AFS_CI_VERSION;
491 afs_osi_Write(tfile, 0, &theader, sizeof(theader));
493 * Truncate the rest of the file, since it may be arbitrarily
496 osi_UFSTruncate(tfile, sizeof(struct afs_fheader));
498 /* Leave the file open now, since reopening the file makes public pool
499 * vnode systems (like OSF/Alpha) much harder to handle, That's because
500 * they can do a vnode recycle operation any time we open a file, which
501 * we'd do on any afs_GetDSlot call, etc.
503 afs_cacheInodep = (struct osi_file *)tfile;
506 } /*afs_InitCacheInfo*/
508 int afs_resourceinit_flag = 0;
509 afs_ResourceInit(preallocs)
512 register afs_int32 i;
513 static struct rx_securityClass *secobj;
515 AFS_STATCNT(afs_ResourceInit);
516 RWLOCK_INIT(&afs_xuser, "afs_xuser");
517 RWLOCK_INIT(&afs_xvolume, "afs_xvolume");
518 RWLOCK_INIT(&afs_xcell, "afs_xcell");
519 RWLOCK_INIT(&afs_xserver, "afs_xserver");
520 RWLOCK_INIT(&afs_xinterface, "afs_xinterface");
521 LOCK_INIT(&afs_puttofileLock, "afs_puttofileLock");
522 #ifndef AFS_AIX32_ENV
523 LOCK_INIT(&osi_fsplock, "osi_fsplock");
525 LOCK_INIT(&osi_flplock, "osi_flplock");
526 RWLOCK_INIT(&afs_xconn, "afs_xconn");
528 afs_InitCBQueue(1); /* initialize callback queues */
530 if (afs_resourceinit_flag == 0) {
531 afs_resourceinit_flag = 1;
532 for (i=0;i<NFENTRIES;i++)
534 for(i=0;i<MAXNUMSYSNAMES;i++)
535 afs_sysnamelist[i] = afs_osi_Alloc(MAXSYSNAME);
536 afs_sysname = afs_sysnamelist[0];
537 strcpy(afs_sysname, SYS_NAME);
538 afs_sysnamecount = 1;
540 #if defined(AFS_AIX32_ENV) || defined(AFS_HPUX_ENV)
541 { extern afs_int32 afs_preallocs;
543 if ((preallocs > 256) && (preallocs < 3600))
544 afs_preallocs = preallocs;
545 osi_AllocMoreSSpace(afs_preallocs);
546 osi_AllocMoreMSpace(100);
551 secobj = rxnull_NewServerSecurityObject();
553 rx_NewService(0, 1, "afs", &secobj, 1, RXAFSCB_ExecuteRequest);
555 rx_NewService(0, RX_STATS_SERVICE_ID, "rpcstats", &secobj, 1,
556 RXSTATS_ExecuteRequest);
558 afs_osi_Wakeup(&afs_server); /* wakeup anyone waiting for it */
561 } /*afs_ResourceInit*/
563 #if defined(AFS_AIX_ENV)
566 * AIX dynamic sizeof(struct proc)
568 * AIX keeps its proc structures in an array. The size of struct proc
569 * varies from release to release of the OS. In order to maintain
570 * binary compatibility with releases later than what we build on, we
571 * need to determine the size of struct proc at run time.
573 * We need this in order to walk the proc[] array to do PAG garbage
576 * We also need this in order to support 'klog -setpag', since the
577 * kernel code needs to locate the proc structure for the parent process
578 * of the current process.
580 * To compute sizeof(struct proc), we need the addresses of two proc
581 * structures and their corresponding pids. Given the pids, we can use
582 * the PROCMASK() macro to compute their corresponding indices in the
583 * proc[] array. By dividing the distance between the pointers by the
584 * number of proc structures, we can compute the size of a single proc
587 * We know the base address of the proc table from v.vb_proc:
589 * <sys/sysconfig.h> declares sysconfig() and SYS_GETPARMS;
590 * (we don't use this, but I note it here for completeness)
592 * <sys/var.h> declares struct var and external variable v;
596 * v.ve_proc &proc[x] (current highwater mark for
597 * proc[] array usage)
599 * The first proc pointer is v.vb_proc, which is the proc structure for
600 * process 0. Process 0's pointer to its first child is the other proc
601 * pointer. If process 0 has no children, we simply give up and do not
602 * support features that require knowing the size of struct proc.
606 afs_procsize_init(void)
608 struct proc *p0; /* pointer to process 0 */
609 struct proc *pN; /* pointer to process 0's first child */
614 p0 = (struct proc *)v.vb_proc;
616 afs_gcpags = AFS_GCPAGS_EPROC0;
622 afs_gcpags = AFS_GCPAGS_EPROCN;
626 if (pN->p_pid == p0->p_pid) {
627 afs_gcpags = AFS_GCPAGS_EEQPID;
631 pN_index = PROCMASK(pN->p_pid);
632 pN_offset = ((char *)pN - (char *)p0);
633 procsize = pN_offset / pN_index;
636 * check that the computation was exact
639 if (pN_index * procsize != pN_offset) {
640 afs_gcpags = AFS_GCPAGS_EINEXACT;
645 * check that the proc table size is a multiple of procsize.
648 if ((((char *)v.ve_proc - (char *)v.vb_proc) % procsize) != 0) {
649 afs_gcpags = AFS_GCPAGS_EPROCEND;
655 afs_gcpags_procsize = procsize;
664 * Clean up and shut down the AFS cache.
670 * Nothing interesting.
676 register struct afs_cbr *tsp, *nsp;
677 extern int afs_cold_shutdown;
678 extern int pagCounter;
681 AFS_STATCNT(shutdown_cache);
682 afs_WriteThroughDSlots();
683 if (afs_cold_shutdown) {
684 afs_cacheinit_flag = 0;
689 afs_cacheFiles = afs_cacheBlocks = 0;
690 pag_epoch = maxIHint = nihints = usedihint = 0;
692 cacheInode = volumeInode = (ino_t)0;
695 cacheInfoModTime = 0;
697 afs_fsfragsize = 1023;
698 bzero((char *)&afs_stats_cmperf, sizeof(afs_stats_cmperf));
699 bzero((char *)&cacheDev, sizeof(struct osi_dev));
705 void shutdown_vnodeops()
707 extern int afs_cold_shutdown;
708 #ifndef AFS_LINUX20_ENV
709 extern int afs_rd_stash_i;
712 extern int lastWarnTime;
714 #if !defined(AFS_SGI_ENV) && !defined(AFS_SUN_ENV) && !defined(AFS_SUN5_ENV)
715 struct buf *afs_bread_freebp = 0;
719 AFS_STATCNT(shutdown_vnodeops);
720 if (afs_cold_shutdown) {
721 #ifndef AFS_SUN5_ENV /* XXX */
724 #ifndef AFS_LINUX20_ENV
727 #if !defined(AFS_SGI_ENV) && !defined(AFS_SUN_ENV) && !defined(AFS_SUN5_ENV)
728 afs_bread_freebp = 0;
739 register struct srvAddr *sa;
740 extern int afs_cold_shutdown;
742 AFS_STATCNT(shutdown_AFS);
743 if (afs_cold_shutdown) {
744 afs_resourceinit_flag = 0;
746 * Free Cells table allocations
750 register struct afs_q *cq, *tq;
751 for (cq = CellLRU.next; cq != &CellLRU; cq = tq) {
752 tc = QTOC(cq); tq = QNext(cq);
754 afs_osi_Free(tc->cellName, strlen(tc->cellName)+1);
755 afs_osi_Free(tc, sizeof(struct cell));
759 * Free Volumes table allocations
763 for (i = 0; i < NVOLS; i++) {
764 for (tv = afs_volumes[i]; tv; tv = tv->next) {
766 afs_osi_Free(tv->name, strlen(tv->name)+1);
775 * Free FreeVolList allocations
777 afs_osi_Free(Initialafs_freeVolList, afs_memvolumes * sizeof(struct volume));
778 afs_freeVolList = Initialafs_freeVolList = 0;
780 /* XXX HACK fort MEM systems XXX
782 * For -memcache cache managers when we run out of free in memory volumes
783 * we simply malloc more; we won't be able to free those additional volumes.
789 * Free Users table allocation
792 struct unixuser *tu, *ntu;
793 for (i=0; i < NUSERS; i++) {
794 for (tu=afs_users[i]; tu; tu = ntu) {
797 afs_osi_Free(tu->stp, tu->stLen);
799 EXP_RELE(tu->exporter);
800 afs_osi_Free(tu, sizeof(struct unixuser));
807 * Free Servers table allocation
810 struct server *ts, *nts;
811 struct conn *tc, *ntc;
812 register struct afs_cbr *tcbrp, *tbrp;
813 struct afs_cbr **lcbrpp;
815 for (i=0; i < NSERVERS; i++) {
816 for (ts = afs_servers[i]; ts; ts = nts) {
818 for (sa = ts->addr; sa; sa = sa->next_sa) {
821 * Free all server's connection structs
827 rx_DestroyConnection(tc->id);
829 afs_osi_Free(tc, sizeof(struct conn));
834 for (tcbrp = ts->cbrs; tcbrp; tcbrp = tbrp) {
836 * Free all server's callback structs
841 afs_osi_Free(ts, sizeof(struct server));
846 for (i=0; i<NFENTRIES; i++)
848 /* Reinitialize local globals to defaults */
849 for(i=0; i<MAXNUMSYSNAMES; i++)
850 afs_osi_Free(afs_sysnamelist[i], MAXSYSNAME);
852 afs_sysnamecount = 0;
855 afs_setTimeHost = (struct server *)0;
857 afs_waitForever = afs_waitForeverCount = 0;
859 afs_nextCellNum = 0x100;
861 afs_server = (struct rx_service *)0;
862 RWLOCK_INIT(&afs_xconn, "afs_xconn");
863 bzero((char *)&afs_rootFid, sizeof(struct VenusFid));
864 RWLOCK_INIT(&afs_xuser, "afs_xuser");
865 RWLOCK_INIT(&afs_xvolume, "afs_xvolume"), RWLOCK_INIT(&afs_xcell, "afs_xcell");
866 RWLOCK_INIT(&afs_xserver, "afs_xserver"), LOCK_INIT(&afs_puttofileLock, "afs_puttofileLock");