ext2 for MDS). Will not work unless ext3 has been patched with a_ops=&ext3_ops
in fs/ext3/inode.c and fs/ext3/namei.c. Not sure if that is the correct
solution yet or not.
--- /dev/null
+#!/bin/sh
+
+SRCDIR="`dirname $0`"
+. $SRCDIR/common.sh
+
+setup
+
+$PTLCTL <<EOF
+mynid localhost
+setup tcp
+connect localhost 1234
+add_uuid self
+add_uuid mds
+add_uuid ost
+quit
+EOF
+
+new_fs ext2 /tmp/ost 10000
+OST=$LOOPDEV
+
+MDSFS=ext3
+new_fs ${MDSFS} /tmp/mds 10000
+MDS=$LOOPDEV
+
+echo 0xffffffff > /proc/sys/portals/debug
+
+$OBDCTL <<EOF
+device 0
+attach mds
+setup ${MDS} ${MDSFS}
+device 1
+attach obdext2
+setup ${OST}
+device 2
+attach ost
+setup 1
+device 3
+attach osc
+setup -1
+quit
+EOF
+
+mount -t lustre_light -o device=3 none /mnt/obd