Whamcloud - gitweb
- ext2_obd.c --- fix the bugs in read/write for Linux 2.4.3
[fs/lustre-release.git] / lustre / demos / obdfssetup.sh
1 #! /bin/bash
2 # Utility script for configuring a simple OBDFS mount
3 #
4 # Copyright (C) 2001  Cluster File Systems, Inc.
5 #
6 # This code is issued under the GNU General Public License.
7 # See the file COPYING in this distribution
8
9 OBDDIR="`dirname $0`/.."
10 .  $OBDDIR/demos/config.sh
11
12 $OBDDIR/demos/basesetup.sh
13
14 if [ x$? != x0 ]; then 
15     echo "Error running basesetup.sh"
16     exit 4;
17 fi
18
19 #insmod $OBDDIR/class/obdclass.o
20 #insmod $OBDDIR/ext2obd/obdext2.o
21 #insmod $OBDDIR/obdfs/obdfs.o
22
23 plog log "ATTACHING /dev/obd0, SETUP $BASEDEV"
24 $OBDDIR/class/obdcontrol -f << EOF
25 device /dev/obd0
26 attach obdext2
27 setup $BASEDEV
28 quit
29 EOF
30
31 [ ! -d "$MNTOBD" ] &&  mkdir $MNTOBD
32 plog mount -t obdfs -odevice=/dev/obd0 none $MNTOBD