From: grev Date: Wed, 5 Nov 2008 17:47:14 +0000 (+0000) Subject: b=16551 X-Git-Tag: GIT_EPOCH_B_RELEASE_1_6_7~2^3~108 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=5bf79c4513e8215119ebfa7cdacc45c5cee40788;p=fs%2Flustre-release.git b=16551 i\Adilger correct remote_[mds|ost] fn to work correctly on configuration with several MDS/OSS nodes --- 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()