Whamcloud - gitweb
The noncontroversial portion of the last few days of changes:
[fs/lustre-release.git] / lustre / tests / llmount.sh
1 #!/bin/sh
2
3 SRCDIR="`dirname $0`"
4 . $SRCDIR/common.sh
5
6 NETWORK=tcp
7 LOCALHOST=localhost
8 SERVER=localhost
9 PORT=1234
10
11 setup_portals
12 setup_lustre
13 read
14
15 new_fs ext2 /tmp/ost 10000
16 OST=$LOOPDEV
17 MDSFS=ext2
18 new_fs ${MDSFS} /tmp/mds 10000
19 MDS=$LOOPDEV
20
21 echo 0xffffffff > /proc/sys/portals/debug
22
23 $OBDCTL <<EOF
24 device 0
25 attach mds
26 setup ${MDS} ${MDSFS}
27 device 1
28 attach obdfilter
29 setup ${OST} ext2
30 device 2
31 attach ost
32 setup 1
33 device 3
34 attach ptlrpc
35 setup
36 device 4
37 attach ldlm
38 setup
39 device 5
40 attach osc
41 setup -1
42 quit
43 EOF
44
45 mount -t lustre_lite -o device=5 none /mnt/lustre