Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add a check in new_fs() to try and avoid overwriting an in-use block device.
[fs/lustre-release.git]
/
lustre
/
tests
/
lllocalmount.sh
1
#!/bin/sh
2
3
SRCDIR="`dirname $0`"
4
. $SRCDIR/common.sh
5
6
setup
7
8
new_fs ext2 /tmp/ost 10000
9
OST=${LOOPDEV}
10
11
MDSFS=ext2
12
new_fs ${MDSFS} /tmp/mds 10000
13
MDS=${LOOPDEV}
14
15
echo 0xffffffff > /proc/sys/portals/debug
16
17
$OBDCTL <<EOF
18
device 0
19
attach mds
20
setup ${MDS} ${MDSFS}
21
device 1
22
attach obdext2
23
setup ${OST}
24
device 2
25
attach ost
26
setup 1
27
device 3
28
attach osc
29
setup 2
30
quit
31
EOF
32
33
# mount -t lustre_light -o device=3 none /mnt/obd