Whamcloud - gitweb
Some racy problems happened when sanity-quota.sh run on buffalo.
[fs/lustre-release.git] / lustre / tests / llecho.sh
index e3f92f8..a345f4f 100644 (file)
@@ -1,40 +1,23 @@
 #!/bin/sh
 
-SRCDIR="`dirname $0`"
-. $SRCDIR/common.sh
-
-setup
-
-$R/usr/src/portals/linux/utils/ptlctl <<EOF
-mynid localhost
-setup tcp
-connect localhost 1234
-add_uuid self
-add_uuid ost
-quit
-EOF
+PATH=`dirname $0`/../utils:$PATH
 
-mknod /dev/obd c 10 241
-echo 8191 > /proc/sys/portals/debug
-echo 8191 > /proc/sys/portals/trace
-
-$R/usr/src/obd/utils/obdctl <<EOF
-device 0
-attach obdecho
-setup
-device 1
-attach ost
-setup 0
-device 2
-attach osc
-setup -1
-quit
-EOF
+LCONF=${LCONF:-lconf}
+NAME=${NAME:-echo}
+
+config=$NAME.xml
+mkconfig=$NAME.sh
+
+if [ "$LUSTRE" ]; then
+  lustre_opt="--lustre=$LUSTRE"
+fi
+
+[ -f $config ] || sh -x $mkconfig $config || exit 1
+
+$LCONF $lustre_opt --reformat $@ $OPTS $config || exit 4
 
 cat <<EOF
+
 run getattr tests as:
-obdctl 
-device 2 
-connect
-test_getattr 1000000
+`dirname $0`../utils/lctl --device '\$ECHO_$SERVER' test_getattr 1000000
 EOF