From 5bf79c4513e8215119ebfa7cdacc45c5cee40788 Mon Sep 17 00:00:00 2001 From: grev Date: Wed, 5 Nov 2008 17:47:14 +0000 Subject: [PATCH] b=16551 i\Adilger correct remote_[mds|ost] fn to work correctly on configuration with several MDS/OSS nodes --- lustre/tests/test-framework.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 2ba2ac2..383a431 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -1568,9 +1568,14 @@ osc_to_ost() echo $ost } +remote_node () { + local node=$1 + [ "$node" != "$(hostname)" ] +} + remote_mds () { - [ "$mds_HOST" != "$(hostname)" ] + remote_node $mds_HOST } remote_mds_nodsh() @@ -1580,7 +1585,11 @@ remote_mds_nodsh() remote_ost () { - [ "$ost_HOST" != "$(hostname)" ] + local node + for node in $(osts_nodes) ; do + remote_node $node && return 0 + done + return 1 } remote_ost_nodsh() -- 1.8.3.1