Whamcloud - gitweb
- more LDLM refcount locking infrastructure
[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 device 0 SETUP $BASEDEV"
24 $OBDDIR/utils/obdctl << EOF
25 device 0
26 # attach obdfilter
27 # setup $BASEDEV reiserfs
28 attach obdext2
29 setup $BASEDEV
30 quit
31 EOF
32
33 [ ! -d "$MNTOBD" ] &&  mkdir $MNTOBD
34 plog mount -t obdfs -odevice=/dev/obd0 none $MNTOBD