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
Use $TMP variable, if set, for storing temp loopback files.
[fs/lustre-release.git]
/
lustre
/
tests
/
mdcreq.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=988
10
TMP=${TMP:-/tmp}
11
12
setup_portals
13
setup_lustre
14
15
MDSFS=ext2
16
new_fs ${MDSFS} $TMP/mds 1000
17
MDS=$LOOPDEV
18
19
echo 0xffffffff > /proc/sys/portals/debug
20
21
$OBDCTL <<EOF
22
device 0
23
attach mds MDSDEV
24
setup ${MDS} ${MDSFS}
25
quit
26
EOF
27
28
mknod /dev/request c 10 244
29
30
./testreq --getattr
31
./testreq --setattr
32
./testreq --readpage
33
./testreq --open
34
./testreq --close junk_file_handle
35
./testreq --create
36
37
echo "Done."