2 # Utility script for configuring a simple OBDFS mount
4 # Copyright (C) 2001 Cluster File Systems, Inc.
6 # This code is issued under the GNU General Public License.
7 # See the file COPYING in this distribution
9 OBDDIR="`dirname $0`/.."
10 . $OBDDIR/demos/config.sh
12 $OBDDIR/demos/basesetup.sh
13 #losetup /dev/loop0 /tmp/obdfs.tmpfile
15 if [ x$? != x0 ]; then
16 echo "Error running basesetup.sh"
20 #insmod $OBDDIR/class/obdclass.o
21 #insmod $OBDDIR/ext2obd/obdext2.o
22 #insmod $OBDDIR/obdfs/obdfs.o
24 plog log "ATTACHING /dev/obd0, SETUP $BASEDEV"
25 $OBDDIR/class/obdcontrol -f << EOF
32 [ ! -d "$MNTOBD" ] && mkdir $MNTOBD
33 plog mount -t obdfs -odevice=/dev/obd0 none $MNTOBD