Coda File System

maxuid too small

From: Greg Troxel <gdt_at_fnord.ir.bbn.com>
Date: 07 Dec 1998 12:50:51 -0500
At BBN, we use UIDs that are a function of employee ids.
The range of the function is from 10001 to about 25000.

I lost due to MAXUID being 10000, which seemed really small.


Index: coda/coda-src/libal/pcfgen.c
diff -c coda/coda-src/libal/pcfgen.c:1.1.1.2 coda/coda-src/libal/pcfgen.c:1.3
*** coda/coda-src/libal/pcfgen.c:1.1.1.2	Tue Sep 29 13:41:27 1998
--- coda/coda-src/libal/pcfgen.c	Mon Dec  7 09:44:09 1998
***************
*** 82,90 ****
  #include "parsepdb.h"
  #include "pcf.h"
  
! #define MAXUID	10000	/* UIDs are in the range 1:MAXUID */
  			/* 0 <= HighestUID <= MAXUID */		
! #define MAXGID  1000   	/* GIDs are in the range -1:-MAXGID */
  			/* 0 <= -HighestGID <= MAXGID */
  #define POOLSIZE (MAXUID+MAXGID)*PRS_MAXNAMELEN/4	/* Average name expected to be 25% of max */
  							/* LitPoolSize <= POOLSIZE  */
--- 82,90 ----
  #include "parsepdb.h"
  #include "pcf.h"
  
! #define MAXUID	30000	/* UIDs are in the range 1:MAXUID */
  			/* 0 <= HighestUID <= MAXUID */		
! #define MAXGID  2000   	/* GIDs are in the range -1:-MAXGID */
  			/* 0 <= -HighestGID <= MAXGID */
  #define POOLSIZE (MAXUID+MAXGID)*PRS_MAXNAMELEN/4	/* Average name expected to be 25% of max */
  							/* LitPoolSize <= POOLSIZE  */


-- 
        Greg Troxel <gdt_at_ir.bbn.com>  +1 617 873 2494
Received on 1998-12-07 12:57:39