Whamcloud - gitweb
- More lctl-related common.sh fixes
[fs/lustre-release.git] / lustre / tests / mdcreq.sh
index b9b5f05..a6f169a 100644 (file)
@@ -3,29 +3,34 @@
 SRCDIR="`dirname $0`"
 . $SRCDIR/common.sh
 
-setup
-
-$PTLCTL <<EOF
-mynid localhost
-setup tcp
-connect localhost 1234
-add_uuid self
-add_uuid mds
-quit
-EOF
+NETWORK=tcp
+LOCALHOST=localhost
+SERVER=localhost
+PORT=2432
+
+setup_portals
+setup_lustre
 
 MDSFS=ext2
-new_fs ${MDSFS} /tmp/mds 10000
+new_fs ${MDSFS} /tmp/mds 1000
 MDS=$LOOPDEV
 
 echo 0xffffffff > /proc/sys/portals/debug
 
-$R/usr/src/obd/utils/obdctl <<EOF
+$OBDCTL <<EOF
 device 0
-attach mds
+attach mds MDSDEV
 setup ${MDS} ${MDSFS}
 quit
 EOF
 
 mknod /dev/request c 10 244
-# $R/usr/src/obd/tests/testreq
\ No newline at end of file
+
+./testreq --getattr
+./testreq --setattr
+./testreq --readpage
+./testreq --open
+./testreq --close junk_file_handle
+./testreq --create
+
+echo "Done."