When our site started growing (when we were going to let ugrads on)
we looked at several homedir schemes. Our distribution of usernames
*was* such that the
/afs/@cell/user/u/s/username
would be quite unbalanced (lots of 0s, of course, and a couple
which we predicted to be several hundred).
We ended up using:
/afs/@cell/user/{00..31}/{00..31}/username
<9..5> <4..0>
where the two numbers were the low 5 and next 5 bits of the UID/AFS-ID.
This gives us about 32 entries in each level. (32x32x32 = 32K
which is about our population). For example:
pvtest.cc> pwd
/afs/iastate.edu/users/04/01/john (my uid is 129)
pvtest.cc> ls ..
alimcc bvote dsalmon jdm kenta scollier splunker
amyjo cnichols fdunshee jeanie lembrich slewin tdorsey
bennydw colej georgios jgieskin louislam slutzki tsingebr
bimbo dagamble hotlipps jmyli mdale sphasst wiertzn
burzette deichner jcogdill john register sphelan
This makes it easy to compute, but in fact, since we use Hesiod
for naming services, we hardly ever do it that way, we just do
cd ~username
for example.
John
--
John Hascall, Software Engr. Shut up, be happy. The conveniences you
ISU Computation Center demanded are now mandatory. -Jello Biafra
mailto:[EMAIL PROTECTED]
http://www.cc.iastate.edu/staff/systems/john/welcome.html <-- the usual crud