• Mike Hibler's avatar
    Wow, this should make me look important! · afa5e919
    Mike Hibler authored
    Two-day boondoggle to support "/scratch", an optional large, shared filesystem
    for users.  To do this, I needed to find all the instances where /proj is used
    and behave accordingly.  The boondoggle part was the decision to gather up all
    the hardwired instances of shared directory names ("/proj", "/users", etc.)
    so that they are set in a common place (via unexposed configure variables).
    This is a boondoggle because:
    
    1. I didn't change the client-side scripts.  They need a different mechanism
       (e.g., tmcd) to get the info, configure is the wrong way.
    
    2. Even if I had done #1 it is likely--no, certain--that something would
       fail if you tried to rename "/proj" to be "/mike".  These names are just
       too ingrained.
    
    3. We may not even use "/scratch" as it turns out.
    
    Note, I also didn't fix any of the .html documentation.  Anyway, it is done.
    To maintain my illusion in the future you should:
    
    1. Have perl scripts include "use libtestbed" and use the defined PROJROOT(),
       et.al. functions where possible.  If not possible, make sure they run
       through configure and use @PROJROOT_DIR@, etc.
    
    2. Use the configure method for python, C, php and other languages.
    
    3. There are perl (TBValidUserDir) and php (VALIDUSERPATH) functions which
       you should call to determine if an NS, template parameter, tarball or
       other file are in "an acceptable location."  Use these functions where
       possible.  They know about the optional "scratch" filesystem.  Note that
       the perl function is over-engineered to handles cases that don't occur
       in nature.
    afa5e919
Name
Last commit
Last update
account Loading commit data...
apache Loading commit data...
assign Loading commit data...
autoconf Loading commit data...
bugdb Loading commit data...
capture Loading commit data...
cdrom Loading commit data...
collab Loading commit data...
daikon Loading commit data...
db Loading commit data...
delay/linux Loading commit data...
dhcpd Loading commit data...
discvr Loading commit data...
doc Loading commit data...
event Loading commit data...
firewall Loading commit data...
hw_config Loading commit data...
hyperviewer Loading commit data...
image-test Loading commit data...
install Loading commit data...
ipod Loading commit data...
lib Loading commit data...
mote Loading commit data...
named Loading commit data...
os Loading commit data...
patches Loading commit data...
pelab Loading commit data...
pxe Loading commit data...
rc.d Loading commit data...
robots Loading commit data...
rpms Loading commit data...
security Loading commit data...
sensors Loading commit data...
sql Loading commit data...
ssl Loading commit data...
sysadmin Loading commit data...
tbsetup Loading commit data...
testsuite Loading commit data...
tip Loading commit data...
tmcd Loading commit data...
tools Loading commit data...
utils Loading commit data...
vis Loading commit data...
wiki Loading commit data...
www Loading commit data...
xmlrpc Loading commit data...
.loc-ignore Loading commit data...
BUGS Loading commit data...
GNUmakefile.in Loading commit data...
GNUmakerules Loading commit data...
GPL-COPYING Loading commit data...
LGPL-COPYING Loading commit data...
LICENSE Loading commit data...
Makeconf.in Loading commit data...
README Loading commit data...
TODO Loading commit data...
TODO.plab Loading commit data...
config.h.in Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
defs-aerolab Loading commit data...
defs-calfeld-emulab Loading commit data...
defs-davidand-emulab Loading commit data...
defs-default Loading commit data...
defs-duerig-emulab Loading commit data...
defs-elabinelab Loading commit data...
defs-example Loading commit data...
defs-example-privatecnet Loading commit data...
defs-fish-emulab Loading commit data...
defs-gatech Loading commit data...
defs-johnsond-emulab Loading commit data...
defs-kwebb-emulab Loading commit data...
defs-newbold-emulab Loading commit data...
defs-newbold-macdb Loading commit data...
defs-ricci-emulab Loading commit data...
defs-shash-emulab Loading commit data...
defs-stoller-emulab Loading commit data...
defs-stoller-home Loading commit data...
defs-stoller-lbsdb Loading commit data...
defs-uky Loading commit data...
defs-wide Loading commit data...