Whamcloud - gitweb
Start to abstract out the location of modules for LUSTRE and PORTALS. It
authoradilger <adilger>
Tue, 9 Apr 2002 21:59:27 +0000 (21:59 +0000)
committeradilger <adilger>
Tue, 9 Apr 2002 21:59:27 +0000 (21:59 +0000)
doesn't actually do anything differently yet, but at least we have isolated
the paths into a single location.

lustre/tests/common.sh

index d0f835c..9c398a1 100644 (file)
@@ -4,10 +4,14 @@ if [ -d /r ]; then
        R=/r
 fi
 
-PTLCTL=$SRCDIR/../../portals/linux/utils/ptlctl
-OBDCTL=$SRCDIR/../../obd/utils/obdctl
-DEBCTL=$SRCDIR/../../portals/linux/utils/debugctl
-ACCEPTOR=$SRCDIR/../../portals/linux/utils/acceptor
+PORTALS=$SRCDIR/../../portals
+LUSTRE=$SRCDIR/../../obd
+
+PTLCTL=$PORTALS/linux/utils/ptlctl
+DEBCTL=$PORTALS/linux/utils/debugctl
+ACCEPTOR=$PORTALS/linux/utils/acceptor
+
+OBDCTL=$LUSTRE/utils/obdctl
 
 LOOPNUM=0; export LOOPNUM
 if [ -b /dev/loop0 ]; then
@@ -102,20 +106,20 @@ setup_portals() {
 
        [ -c /dev/portals ] || mknod /dev/portals c 10 240
 
-       insmod $SRCDIR/../../portals/linux/oslib/portals.o || exit -1
+       insmod $PORTALS/linux/oslib/portals.o || exit -1
 
        case $NETWORK in
        elan)   if [ "$PORT" ]; then
                        echo "$0: NETWORK is elan but PORT is set" 1>&2
                        exit -1
                fi
-               insmod $SRCDIR/../../portals/linux/qswnal/kqswnal.o
+               insmod $PORTALS/linux/qswnal/kqswnal.o
                ;;
        tcp)    if [ -z "$PORT" ]; then
                        echo "$0: NETWORK is tcp but PORT is not set" 1>&2
                        exit -1
                fi
-               insmod $SRCDIR/../../portals/linux/socknal/ksocknal.o || exit -1
+               insmod $PORTALS/linux/socknal/ksocknal.o || exit -1
                $ACCEPTOR $PORT
                ;;
        *)      echo "$0: unknown NETWORK \'$NETWORK\'" 1>&2
@@ -137,17 +141,17 @@ setup_portals() {
 setup_lustre() {
        [ -c /dev/obd ] || mknod /dev/obd c 10 241
 
-       insmod $SRCDIR/../../obd/class/obdclass.o || exit -1
-       insmod $SRCDIR/../../obd/rpc/ptlrpc.o || exit -1
-       insmod $SRCDIR/../../obd/ldlm/ldlm.o || exit -1
-       insmod $SRCDIR/../../obd/ext2obd/obdext2.o || exit -1
-       insmod $SRCDIR/../../obd/filterobd/obdfilter.o || exit -1
-       insmod $SRCDIR/../../obd/ost/ost.o || exit -1
-       insmod $SRCDIR/../../obd/osc/osc.o || exit -1
-       insmod $SRCDIR/../../obd/obdecho/obdecho.o || exit -1
-       insmod $SRCDIR/../../obd/mds/mds.o || exit -1
-       insmod $SRCDIR/../../obd/mdc/mdc.o || exit -1
-       insmod $SRCDIR/../../obd/llight/llite.o || exit -1
+       insmod $LUSTRE/class/obdclass.o || exit -1
+       insmod $LUSTRE/rpc/ptlrpc.o || exit -1
+       insmod $LUSTRE/ldlm/ldlm.o || exit -1
+       insmod $LUSTRE/ext2obd/obdext2.o || exit -1
+       insmod $LUSTRE/filterobd/obdfilter.o || exit -1
+       insmod $LUSTRE/ost/ost.o || exit -1
+       insmod $LUSTRE/osc/osc.o || exit -1
+       insmod $LUSTRE/obdecho/obdecho.o || exit -1
+       insmod $LUSTRE/mds/mds.o || exit -1
+       insmod $LUSTRE/mdc/mdc.o || exit -1
+       insmod $LUSTRE/llight/llite.o || exit -1
 
        list_mods
 
@@ -157,10 +161,10 @@ setup_lustre() {
 setup_ldlm() {
        [ -c /dev/portals ] || mknod /dev/portals c 10 240
 
-       insmod $SRCDIR/../../portals/linux/oslib/portals.o || exit -1
+       insmod $PORTALS/linux/oslib/portals.o || exit -1
 
-       insmod $SRCDIR/../../obd/class/obdclass.o || exit -1
-       insmod $SRCDIR/../../obd/ldlm/ldlm.o || exit -1
+       insmod $LUSTRE/class/obdclass.o || exit -1
+       insmod $LUSTRE/ldlm/ldlm.o || exit -1
 
        list_mods
 }