Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-633 iokit: mds-survey script for MD echo client test
[fs/lustre-release.git]
/
lustre-iokit
/
obdfilter-survey
/
libecho
diff --git
a/lustre-iokit/obdfilter-survey/libecho
b/lustre-iokit/obdfilter-survey/libecho
index
23aa2b8
..
8679157
100644
(file)
--- a/
lustre-iokit/obdfilter-survey/libecho
+++ b/
lustre-iokit/obdfilter-survey/libecho
@@
-259,6
+259,9
@@
get_ec_devno () {
local host=$1
local client_name="$2"
local ost_name="$3"
local host=$1
local client_name="$2"
local ost_name="$3"
+ local dev_type="${4:-obdfilter}"
+ local stack_type="${5:-}"
+
if [ -z "$client_name" ]; then
if [ -z "$ost_name" ]; then
echo "client and ost name both null"
if [ -z "$client_name" ]; then
if [ -z "$ost_name" ]; then
echo "client and ost name both null"
@@
-276,7
+279,7
@@
get_ec_devno () {
"$client_name, host: $host"
exit 1
fi
"$client_name, host: $host"
exit 1
fi
- ost=`get_devno $host
obdfilter
$ost_name`
+ ost=`get_devno $host
$dev_type
$ost_name`
if [ -z "$ost" ]; then
echo "OST $ost_name not setup"
exit 1
if [ -z "$ost" ]; then
echo "OST $ost_name not setup"
exit 1
@@
-284,7
+287,7
@@
get_ec_devno () {
client_name=${ost_name}_ecc
remote_shell $host "$lctl <<EOF
attach echo_client $client_name ${client_name}_UUID
client_name=${ost_name}_ecc
remote_shell $host "$lctl <<EOF
attach echo_client $client_name ${client_name}_UUID
- setup $ost_name
+ setup $ost_name
$stack_type
EOF"
ec=`get_devno $host echo_client $client_name`
if [ -z "$ec" ]; then
EOF"
ec=`get_devno $host echo_client $client_name`
if [ -z "$ec" ]; then