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"
23 #include "afs/sysincludes.h" /* Standard vendor system headers */
24 #include "afsincludes.h" /* Afs-based standard headers */
25 #include "afs/afs_stats.h" /* afs statistics */
27 /* Exported variables */
28 struct osi_dev cacheDev; /*Cache device */
29 afs_int32 cacheInfoModTime; /*Last time cache info modified */
30 #if defined(AFS_OSF_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV)
31 struct mount *afs_cacheVfsp = 0;
32 #elif defined(AFS_LINUX20_ENV)
33 struct super_block *afs_cacheSBp = 0;
35 struct vfs *afs_cacheVfsp = 0;
37 afs_rwlock_t afs_puttofileLock; /* not used */
38 char *afs_sysname = 0; /* So that superuser may change the
39 * local value of @sys */
40 char *afs_sysnamelist[MAXNUMSYSNAMES]; /* For support of a list of sysname */
41 int afs_sysnamecount = 0;
42 int afs_sysnamegen = 0;
43 struct volume *Initialafs_freeVolList;
44 int afs_memvolumes = 0;
45 #if defined(AFS_XBSD_ENV)
46 static struct vnode *volumeVnode;
48 #if defined(AFS_DISCON_ENV)
49 afs_rwlock_t afs_discon_lock;
50 extern afs_rwlock_t afs_disconDirtyLock;
53 /* This is the kernel side of the dynamic vcache setting */
54 int afsd_dynamic_vcaches = 0; /* Enable dynamic-vcache support */
57 * Initialization order is important. Must first call afs_CacheInit,
58 * then cache file and volume file initialization routines. Next, the
59 * individual cache entry initialization routines are called.
69 * astatSize : The number of stat cache (vnode) entries to
71 * afiles : The number of disk files to allocate to the cache
72 * ablocks : The max number of 1 Kbyte blocks that all of
73 * the files in the cache may occupy.
74 * aDentries : Number of dcache entries to allocate.
75 * aVolumes : Number of volume cache entries to allocate.
76 * achunk : Power of 2 to make the chunks.
77 * aflags : Flags passed in.
78 * inodes : max inodes to pin down in inode[]
79 * users : what should size of per-user access cache be?
82 * This routine should only be called at initialization time, since
83 * it reclaims no resources and doesn't sufficiently synchronize
84 * with other processes.
87 struct cm_initparams cm_initParams;
88 static int afs_cacheinit_flag = 0;
90 afs_CacheInit(afs_int32 astatSize, afs_int32 afiles, afs_int32 ablocks,
91 afs_int32 aDentries, afs_int32 aVolumes, afs_int32 achunk,
92 afs_int32 aflags, afs_int32 ninodes, afs_int32 nusers, afs_int32 dynamic_vcaches)
95 register struct volume *tv;
97 AFS_STATCNT(afs_CacheInit);
99 * Jot down the epoch time, namely when this incarnation of the
100 * Cache Manager started.
102 afs_stats_cmperf.epoch = pag_epoch = osi_Time();
104 afs_stats_cmperf.sysName_ID = SYS_NAME_ID;
106 afs_stats_cmperf.sysName_ID = SYS_NAME_ID_UNDEFINED;
107 #endif /* SYS_NAME_ID */
109 #ifdef AFS_MAXVCOUNT_ENV
110 afsd_dynamic_vcaches = dynamic_vcaches;
111 printf("%s dynamically allocated vcaches\n", ( afsd_dynamic_vcaches ? "enabling" : "disabling" ));
113 afsd_dynamic_vcaches = 0;
116 printf("Starting AFS cache scan...");
117 if (afs_cacheinit_flag)
119 afs_cacheinit_flag = 1;
120 cacheInfoModTime = 0;
125 LOCK_INIT(&afs_ftf, "afs_ftf");
126 AFS_RWLOCK_INIT(&afs_xaxs, "afs_xaxs");
127 #ifdef AFS_DISCON_ENV
128 AFS_RWLOCK_INIT(&afs_discon_lock, "afs_discon_lock");
129 AFS_RWLOCK_INIT(&afs_disconDirtyLock, "afs_disconDirtyLock");
130 QInit(&afs_disconDirty);
131 QInit(&afs_disconShadow);
136 * create volume list structure
140 else if (aVolumes > 32767)
143 tv = (struct volume *)afs_osi_Alloc(aVolumes * sizeof(struct volume));
144 for (i = 0; i < aVolumes - 1; i++)
145 tv[i].next = &tv[i + 1];
146 tv[aVolumes - 1].next = NULL;
147 afs_freeVolList = Initialafs_freeVolList = tv;
148 afs_memvolumes = aVolumes;
150 afs_cacheFiles = afiles;
151 afs_cacheStats = astatSize;
152 afs_vcacheInit(astatSize);
153 afs_dcacheInit(afiles, ablocks, aDentries, achunk, aflags);
154 #ifdef AFS_64BIT_CLIENT
155 #ifdef AFS_VM_RDWR_ENV
156 afs_vmMappingEnd = AFS_CHUNKBASE(0x7fffffff);
157 #endif /* AFS_VM_RDWR_ENV */
158 #endif /* AFS_64BIT_CLIENT */
160 #if defined(AFS_AIX_ENV) && !defined(AFS_AIX51_ENV)
162 static void afs_procsize_init(void);
168 /* Save the initialization parameters for later pioctl queries. */
169 cm_initParams.cmi_version = CMI_VERSION;
170 cm_initParams.cmi_nChunkFiles = afiles;
171 cm_initParams.cmi_nStatCaches = astatSize;
172 cm_initParams.cmi_nDataCaches = aDentries;
173 cm_initParams.cmi_nVolumeCaches = aVolumes;
174 cm_initParams.cmi_firstChunkSize = AFS_FIRSTCSIZE;
175 cm_initParams.cmi_otherChunkSize = AFS_OTHERCSIZE;
176 cm_initParams.cmi_cacheSize = afs_cacheBlocks;
177 cm_initParams.cmi_setTime = afs_setTime;
178 cm_initParams.cmi_memCache = (aflags & AFSCALL_INIT_MEMCACHE) ? 1 : 0;
186 * afs_ComputeCacheParams
189 * Set some cache parameters.
196 afs_ComputeCacheParms(void)
198 register afs_int32 i;
199 afs_int32 afs_maxCacheDirty;
202 * Don't allow more than 2/3 of the files in the cache to be dirty.
204 afs_maxCacheDirty = (2 * afs_cacheFiles) / 3;
207 * Also, don't allow more than 2/3 of the total space get filled
208 * with dirty chunks. Compute the total number of chunks required
209 * to fill the cache, make sure we don't set out limit above 2/3 of
210 * that. If the cache size is greater than 1G, avoid overflow at
211 * the expense of precision on the chunk size.
213 if (afs_cacheBlocks & 0xffe00000) {
214 i = afs_cacheBlocks / (AFS_FIRSTCSIZE >> 10);
216 i = (afs_cacheBlocks << 10) / AFS_FIRSTCSIZE;
219 if (afs_maxCacheDirty > i)
220 afs_maxCacheDirty = i;
221 if (afs_maxCacheDirty < 1)
222 afs_maxCacheDirty = 1;
223 afs_stats_cmperf.cacheMaxDirtyChunks = afs_maxCacheDirty;
224 } /*afs_ComputeCacheParms */
228 * afs_LookupInodeByPath
230 * Look up inode given a file name.
231 * Optionally return the vnode too.
232 * If the vnode is not returned, we rele it.
235 afs_LookupInodeByPath(char *filename, afs_ufs_dcache_id_t *inode, struct vnode **fvpp)
239 #if defined(AFS_LINUX22_ENV)
241 code = gop_lookupname(filename, AFS_UIOSYS, 0, &dp);
244 osi_get_fh(dp, inode);
247 struct vnode *filevp;
248 code = gop_lookupname(filename, AFS_UIOSYS, 0, &filevp);
251 *inode = afs_vnodeToInumber(filevp);
263 afs_InitCellInfo(char *afile)
265 afs_dcache_id_t inode;
268 #ifdef AFS_CACHE_VNODE_PATH
269 inode.ufs = AFS_CACHE_CELLS_INODE;
271 code = afs_LookupInodeByPath(afile, &inode.ufs, NULL);
273 return afs_cellname_init(&inode, code);
280 * Set up the volume info storage file.
283 * afile : the file to be declared to be the volume info storage
284 * file for AFS. It must be already truncated to 0 length.
287 * This function is called only during initialization.
289 * WARNING: Data will be written to this file over time by AFS.
293 afs_InitVolumeInfo(char *afile)
296 struct osi_file *tfile;
298 AFS_STATCNT(afs_InitVolumeInfo);
299 #if defined(AFS_XBSD_ENV)
301 * On Open/Free/NetBSD, we can get into big trouble if we don't hold the volume file
302 * vnode. SetupVolume holds afs_xvolume lock exclusive.
303 * SetupVolume->GetVolSlot->UFSGetVolSlot->{GetVolCache or WriteVolCache}
304 * ->osi_UFSOpen->VFS_VGET()->ffs_vget->getnewvnode->vgone on some vnode.
305 * If it's AFS, then ->vclean->afs_nbsd_reclaim->FlushVCache->QueueVCB->
306 * GetVolume->FindVolume-> waits on afs_xvolume lock !
308 * In general, anything that's called with afs_xvolume locked must not
309 * end up calling getnewvnode(). The only cases I've found so far
310 * are things which try to get the volumeInode, and since we keep
313 code = afs_LookupInodeByPath(afile, &volumeInode.ufs, &volumeVnode);
314 #elif defined(AFS_CACHE_VNODE_PATH)
315 volumeInode.ufs = AFS_CACHE_VOLUME_INODE;
317 code = afs_LookupInodeByPath(afile, &volumeInode.ufs, NULL);
321 tfile = afs_CFileOpen(&volumeInode);
322 afs_CFileTruncate(tfile, 0);
323 afs_CFileClose(tfile);
331 * Set up the given file as the AFS cache info file.
334 * afile : Name of the file assumed to be the cache info file
335 * for the Cache Manager; it will be used as such.
336 * Side Effects: This sets afs_fragsize, which is used in the cache usage
337 * calculations such as in afs_adjustsize()
340 * This function is called only during initialization. The given
341 * file should NOT be truncated to 0 lenght; its contents descrebe
342 * what data is really in the cache.
344 * WARNING: data will be written to this file over time by AFS.
346 * NOTE: Starting to use separate osi_InitCacheInfo() routines to clean up
351 afs_InitCacheInfo(register char *afile)
353 register afs_int32 code;
354 struct osi_stat tstat;
355 register struct osi_file *tfile;
356 struct afs_fheader theader;
357 #ifndef AFS_LINUX22_ENV
358 struct vnode *filevp;
362 AFS_STATCNT(afs_InitCacheInfo);
363 if (cacheDiskType != AFS_FCACHE_TYPE_UFS)
364 osi_Panic("afs_InitCacheInfo --- called for non-ufs cache!");
365 #ifdef AFS_LINUX22_ENV
366 code = osi_InitCacheInfo(afile);
370 code = gop_lookupname(afile, AFS_UIOSYS, 0, &filevp);
374 #if defined(AFS_SUN56_ENV)
376 #elif defined(AFS_HPUX102_ENV)
378 #elif defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV) ||defined(AFS_HPUX100_ENV)
380 #elif defined(AFS_DUX40_ENV)
382 #elif defined(AFS_DARWIN80_ENV)
388 #if defined(AFS_SGI_ENV)
390 VFS_STATVFS(filevp->v_vfsp, &st, NULL, code);
393 if (!VFS_STATFS(filevp->v_vfsp, &st, NULL))
394 #endif /* AFS_SGI65_ENV */
395 #elif defined(AFS_SUN5_ENV) || defined(AFS_HPUX100_ENV)
396 if (!VFS_STATVFS(filevp->v_vfsp, &st))
397 #elif defined(AFS_OSF_ENV)
399 VFS_STATFS(filevp->v_vfsp, code);
401 st = filevp->v_vfsp->m_stat;
403 #elif defined(AFS_AIX41_ENV)
404 if (!VFS_STATFS(filevp->v_vfsp, &st, &afs_osi_cred))
405 #elif defined(AFS_LINUX20_ENV)
410 VFS_STATFS(filevp->v_vfsp, &st);
413 #elif defined(AFS_DARWIN80_ENV)
414 afs_cacheVfsp = vnode_mount(filevp);
415 if (afs_cacheVfsp && ((st = *(vfs_statfs(afs_cacheVfsp))),1))
416 #elif defined(AFS_DARWIN_ENV)
417 if (!VFS_STATFS(filevp->v_mount, &st, current_proc()))
418 #elif defined(AFS_FBSD50_ENV)
419 if (!VFS_STATFS(filevp->v_mount, &st, curthread))
420 #elif defined(AFS_XBSD_ENV)
421 if (!VFS_STATFS(filevp->v_mount, &st, curproc))
423 if (!VFS_STATFS(filevp->v_vfsp, &st))
425 #if defined(AFS_SUN5_ENV) || defined(AFS_HPUX100_ENV)
426 afs_fsfragsize = st.f_frsize - 1;
428 afs_fsfragsize = st.f_bsize - 1;
431 #if defined(AFS_LINUX20_ENV)
432 cacheInode.ufs = filevp->i_ino;
433 afs_cacheSBp = filevp->i_sb;
434 #elif defined(AFS_XBSD_ENV)
435 cacheInode.ufs = VTOI(filevp)->i_number;
436 cacheDev.mp = filevp->v_mount;
437 cacheDev.held_vnode = filevp;
438 vref(filevp); /* Make sure mount point stays busy. XXX */
439 #if !defined(AFS_OBSD_ENV)
440 afs_cacheVfsp = filevp->v_vfsp;
443 #if defined(AFS_SGI62_ENV) || defined(AFS_HAVE_VXFS) || defined(AFS_DARWIN_ENV)
444 afs_InitDualFSCacheOps(filevp);
446 #ifndef AFS_CACHE_VNODE_PATH
447 #ifndef AFS_DARWIN80_ENV
448 afs_cacheVfsp = filevp->v_vfsp;
450 cacheInode.ufs = afs_vnodeToInumber(filevp);
452 cacheInode.ufs = AFS_CACHE_ITEMS_INODE;
454 cacheDev.dev = afs_vnodeToDev(filevp);
455 #endif /* AFS_LINUX20_ENV */
457 #endif /* AFS_LINUX22_ENV */
458 tfile = osi_UFSOpen(&cacheInode);
459 afs_osi_Stat(tfile, &tstat);
460 cacheInfoModTime = tstat.mtime;
461 code = afs_osi_Read(tfile, -1, &theader, sizeof(theader));
463 if (code == sizeof(theader)) {
464 /* read the header correctly */
465 if (theader.magic == AFS_FHMAGIC
466 && theader.firstCSize == AFS_FIRSTCSIZE
467 && theader.otherCSize == AFS_OTHERCSIZE
468 && theader.version == AFS_CI_VERSION)
472 /* write out a good file label */
473 theader.magic = AFS_FHMAGIC;
474 theader.firstCSize = AFS_FIRSTCSIZE;
475 theader.otherCSize = AFS_OTHERCSIZE;
476 theader.version = AFS_CI_VERSION;
477 afs_osi_Write(tfile, 0, &theader, sizeof(theader));
479 * Truncate the rest of the file, since it may be arbitrarily
482 osi_UFSTruncate(tfile, sizeof(struct afs_fheader));
484 /* Leave the file open now, since reopening the file makes public pool
485 * vnode systems (like OSF/Alpha) much harder to handle, That's because
486 * they can do a vnode recycle operation any time we open a file, which
487 * we'd do on any afs_GetDSlot call, etc.
489 afs_cacheInodep = (struct osi_file *)tfile;
493 int afs_resourceinit_flag = 0;
495 afs_ResourceInit(int preallocs)
497 register afs_int32 i;
498 static struct rx_securityClass *secobj;
500 AFS_STATCNT(afs_ResourceInit);
501 AFS_RWLOCK_INIT(&afs_xuser, "afs_xuser");
502 AFS_RWLOCK_INIT(&afs_xvolume, "afs_xvolume");
503 AFS_RWLOCK_INIT(&afs_xserver, "afs_xserver");
504 AFS_RWLOCK_INIT(&afs_xsrvAddr, "afs_xsrvAddr");
505 AFS_RWLOCK_INIT(&afs_icl_lock, "afs_icl_lock");
506 AFS_RWLOCK_INIT(&afs_xinterface, "afs_xinterface");
507 LOCK_INIT(&afs_puttofileLock, "afs_puttofileLock");
509 LOCK_INIT(&osi_fsplock, "osi_fsplock");
510 LOCK_INIT(&osi_flplock, "osi_flplock");
512 AFS_RWLOCK_INIT(&afs_xconn, "afs_xconn");
515 afs_InitCBQueue(1); /* initialize callback queues */
517 if (afs_resourceinit_flag == 0) {
518 afs_resourceinit_flag = 1;
519 for (i = 0; i < NFENTRIES; i++)
521 for (i = 0; i < MAXNUMSYSNAMES; i++)
522 afs_sysnamelist[i] = afs_osi_Alloc(MAXSYSNAME);
523 afs_sysname = afs_sysnamelist[0];
524 strcpy(afs_sysname, SYS_NAME);
525 afs_sysnamecount = 1;
529 secobj = rxnull_NewServerSecurityObject();
531 rx_NewService(0, 1, "afs", &secobj, 1, RXAFSCB_ExecuteRequest);
533 rx_NewService(0, RX_STATS_SERVICE_ID, "rpcstats", &secobj, 1,
534 RXSTATS_ExecuteRequest);
536 afs_osi_Wakeup(&afs_server); /* wakeup anyone waiting for it */
539 } /*afs_ResourceInit */
541 #if defined(AFS_AIX_ENV) && !defined(AFS_AIX51_ENV)
544 * AIX dynamic sizeof(struct proc)
546 * AIX keeps its proc structures in an array. The size of struct proc
547 * varies from release to release of the OS. In order to maintain
548 * binary compatibility with releases later than what we build on, we
549 * need to determine the size of struct proc at run time.
551 * We need this in order to walk the proc[] array to do PAG garbage
554 * We also need this in order to support 'klog -setpag', since the
555 * kernel code needs to locate the proc structure for the parent process
556 * of the current process.
558 * To compute sizeof(struct proc), we need the addresses of two proc
559 * structures and their corresponding pids. Given the pids, we can use
560 * the PROCMASK() macro to compute their corresponding indices in the
561 * proc[] array. By dividing the distance between the pointers by the
562 * number of proc structures, we can compute the size of a single proc
565 * We know the base address of the proc table from v.vb_proc:
567 * <sys/sysconfig.h> declares sysconfig() and SYS_GETPARMS;
568 * (we don't use this, but I note it here for completeness)
570 * <sys/var.h> declares struct var and external variable v;
574 * v.ve_proc &proc[x] (current highwater mark for
575 * proc[] array usage)
577 * The first proc pointer is v.vb_proc, which is the proc structure for
578 * process 0. Process 0's pointer to its first child is the other proc
579 * pointer. If process 0 has no children, we simply give up and do not
580 * support features that require knowing the size of struct proc.
584 afs_procsize_init(void)
586 struct proc *p0; /* pointer to process 0 */
587 struct proc *pN; /* pointer to process 0's first child */
595 p0 = (struct proc *)v.vb_proc;
597 afs_gcpags = AFS_GCPAGS_EPROC0;
601 pN = (struct proc *)0;
612 afs_gcpags = AFS_GCPAGS_EPROCN;
616 if (pN->p_pid == p0->p_pid) {
617 afs_gcpags = AFS_GCPAGS_EEQPID;
621 pN_index = PROCMASK(pN->p_pid);
622 pN_offset = ((char *)pN - (char *)p0);
623 procsize = pN_offset / pN_index;
626 * check that the computation was exact
629 if (pN_index * procsize != pN_offset) {
630 afs_gcpags = AFS_GCPAGS_EINEXACT;
635 * check that the proc table size is a multiple of procsize.
638 if ((((char *)v.ve_proc - (char *)v.vb_proc) % procsize) != 0) {
639 afs_gcpags = AFS_GCPAGS_EPROCEND;
645 afs_gcpags_procsize = procsize;
653 * Clean up and shut down the AFS cache.
659 * Nothing interesting.
664 AFS_STATCNT(shutdown_cache);
665 afs_WriteThroughDSlots();
666 if (afs_cold_shutdown) {
667 afs_cacheinit_flag = 0;
672 afs_cacheFiles = afs_cacheBlocks = 0;
673 pag_epoch = maxIHint = nihints = usedihint = 0;
675 #if defined(AFS_XBSD_ENV)
676 vrele(volumeVnode); /* let it go, finally. */
678 if (cacheDev.held_vnode) {
679 vrele(cacheDev.held_vnode);
680 cacheDev.held_vnode = NULL;
683 afs_reset_inode(&cacheInode);
684 afs_reset_inode(&volumeInode);
685 cacheInfoModTime = 0;
687 afs_fsfragsize = 1023;
688 memset((char *)&afs_stats_cmperf, 0, sizeof(afs_stats_cmperf));
689 memset((char *)&cacheDev, 0, sizeof(struct osi_dev));
692 } /*shutdown_cache */
696 shutdown_vnodeops(void)
698 #if !defined(AFS_SGI_ENV) && !defined(AFS_SUN5_ENV)
699 struct buf *afs_bread_freebp = 0;
703 AFS_STATCNT(shutdown_vnodeops);
704 if (afs_cold_shutdown) {
705 #ifndef AFS_SUN5_ENV /* XXX */
708 #ifndef AFS_LINUX20_ENV
711 #if !defined(AFS_SGI_ENV) && !defined(AFS_SUN5_ENV)
712 afs_bread_freebp = 0;
723 register struct srvAddr *sa;
725 AFS_STATCNT(shutdown_AFS);
726 if (afs_cold_shutdown) {
727 afs_resourceinit_flag = 0;
729 * Free Volumes table allocations
733 for (i = 0; i < NVOLS; i++) {
734 for (tv = afs_volumes[i]; tv; tv = tv->next) {
736 afs_osi_Free(tv->name, strlen(tv->name) + 1);
745 * Free FreeVolList allocations
747 afs_osi_Free(Initialafs_freeVolList,
748 afs_memvolumes * sizeof(struct volume));
749 afs_freeVolList = Initialafs_freeVolList = 0;
751 /* XXX HACK fort MEM systems XXX
753 * For -memcache cache managers when we run out of free in memory volumes
754 * we simply malloc more; we won't be able to free those additional volumes.
760 * Free Users table allocation
763 struct unixuser *tu, *ntu;
764 for (i = 0; i < NUSERS; i++) {
765 for (tu = afs_users[i]; tu; tu = ntu) {
768 afs_osi_Free(tu->stp, tu->stLen);
770 EXP_RELE(tu->exporter);
771 afs_osi_Free(tu, sizeof(struct unixuser));
778 * Free Servers table allocation
781 struct server *ts, *nts;
782 struct afs_conn *tc, *ntc;
783 register struct afs_cbr *tcbrp, *tbrp;
785 for (i = 0; i < NSERVERS; i++) {
786 for (ts = afs_servers[i]; ts; ts = nts) {
788 for (sa = ts->addr; sa; sa = sa->next_sa) {
791 * Free all server's connection structs
797 rx_DestroyConnection(tc->id);
799 afs_osi_Free(tc, sizeof(struct afs_conn));
804 for (tcbrp = ts->cbrs; tcbrp; tcbrp = tbrp) {
806 * Free all server's callback structs
811 afs_osi_Free(ts, sizeof(struct server));
816 for (i = 0; i < NFENTRIES; i++)
818 /* Reinitialize local globals to defaults */
819 for (i = 0; i < MAXNUMSYSNAMES; i++)
820 afs_osi_Free(afs_sysnamelist[i], MAXSYSNAME);
822 afs_sysnamecount = 0;
824 afs_setTimeHost = NULL;
826 afs_waitForever = afs_waitForeverCount = 0;
828 afs_server = (struct rx_service *)0;
829 AFS_RWLOCK_INIT(&afs_xconn, "afs_xconn");
830 memset((char *)&afs_rootFid, 0, sizeof(struct VenusFid));
831 AFS_RWLOCK_INIT(&afs_xuser, "afs_xuser");
832 AFS_RWLOCK_INIT(&afs_xvolume, "afs_xvolume");
833 AFS_RWLOCK_INIT(&afs_xserver, "afs_xserver");
834 LOCK_INIT(&afs_puttofileLock, "afs_puttofileLock");