[Ocfs2-test-devel] [PATCH 2/2] Ocfs2-test: Update mutli_reflink_test_run.sh to fix several minor issues.

Marcos E. Matsunaga Marcos.Matsunaga at oracle.com
Thu Jan 7 06:13:19 PST 2010


Signed-off-by: Marcos Matsunaga <Marcos.Matsunaga at oracle.com>

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.”


On 01/07/2010 12:37 AM, Tristan Ye wrote:
> 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 <tristan.ye at oracle.com>
> ---
>  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' >/tmp/$$
> +		SLOTS=`cat /tmp/$$ |wc -l`
> +		rm -f /tmp/$$
> +	fi
> +
>  	MPI_RANKS=${MPI_RANKS:-$DEFAULT_RANKS}
>  
>  	LOG_DIR=${LOG_DIR:-$DEFAULT_LOG_DIR}
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/ocfs2-test-devel/attachments/20100107/a76c8f11/attachment.html 


More information about the Ocfs2-test-devel mailing list