<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000066" bgcolor="#ffffcc">
<tt>Signed-off-by: Marcos Matsunaga <a class="moz-txt-link-rfc2396E" href="mailto:Marcos.Matsunaga@oracle.com">&lt;Marcos.Matsunaga@oracle.com&gt;</a><br>
</tt>
<pre class="moz-signature" cols="72">Regards,

Marcos Eduardo Matsunaga

Oracle USA
Linux Engineering

“The statements and opinions expressed here are my own and do not
necessarily represent those of Oracle Corporation.”
</pre>
<br>
On 01/07/2010 12:37 AM, Tristan Ye wrote:
<blockquote
 cite="mid:1262842659-14873-2-git-send-email-tristan.ye@oracle.com"
 type="cite">
  <pre wrap="">One to use host number as the default slot number for mkfs.ocfs2, the other
try to use plm_rsh_agent instead of pls_rsh_agent to let 1.3.2 or later mpirun
work.

Signed-off-by: Tristan Ye <a class="moz-txt-link-rfc2396E" href="mailto:tristan.ye@oracle.com">&lt;tristan.ye@oracle.com&gt;</a>
---
 programs/reflink_tests/multi_reflink_test_run.sh |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/programs/reflink_tests/multi_reflink_test_run.sh b/programs/reflink_tests/multi_reflink_test_run.sh
index f389172..91ac45a 100755
--- a/programs/reflink_tests/multi_reflink_test_run.sh
+++ b/programs/reflink_tests/multi_reflink_test_run.sh
@@ -53,7 +53,7 @@ fi
 
 BLOCKSIZE=
 CLUSTERSIZE=
-SLOTS=4
+SLOTS=
 JOURNALSIZE=0
 BLOCKS=0
 DEVICE=
@@ -74,7 +74,7 @@ DEFAULT_RANKS=4
 MPI_RANKS=
 MPI_HOSTS=
 MPI_ACCESS_METHOD="ssh"
-MPI_PLS_AGENT_ARG="-mca pls_rsh_agent ssh:rsh"
+MPI_PLS_AGENT_ARG="-mca plm_rsh_agent ssh:rsh"
 MPI_BTL_ARG="-mca btl tcp,self"
 MPI_BTL_IF_ARG=
 
@@ -135,7 +135,7 @@ function f_setup()
         f_getoptions $*
 
         if [ "$MPI_ACCESS_METHOD" = "rsh" ];then
-                MPI_PLS_AGENT_ARG="-mca pls_rsh_agent rsh:ssh"
+                MPI_PLS_AGENT_ARG="-mca plm_rsh_agent rsh:ssh"
         fi
 
         if [ -z "${MOUNT_POINT}" ];then
@@ -159,6 +159,12 @@ ${MOUNT_POINT}`"
                 f_usage
         fi
 
+        if [ -z "${SLOTS}" ];then
+                echo $MPI_HOSTS|sed -e 's/,/\n/g' &gt;/tmp/$$
+                SLOTS=`cat /tmp/$$ |wc -l`
+                rm -f /tmp/$$
+        fi
+
         MPI_RANKS=${MPI_RANKS:-$DEFAULT_RANKS}
 
         LOG_DIR=${LOG_DIR:-$DEFAULT_LOG_DIR}
  </pre>
</blockquote>
</body>
</html>