[Ocfs2-test-devel] [PATCH 41/59] reflink-test: fix multiple stress test

Eric Ren zren at suse.com
Tue Sep 22 21:48:49 PDT 2015


Reviewed-by: Eric Ren <zren at suse.com>

Thanks,
Eric Ren

On Mon, Sep 14, 2015 at 10:44:27AM +0800, Junxiao Bi wrote: 
> Wrong test file name caused tuncate fail, fix it.
> 
> Signed-off-by: Junxiao Bi <junxiao.bi at oracle.com>
> ---
>  programs/reflink_tests/multi_reflink_test.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/programs/reflink_tests/multi_reflink_test.c b/programs/reflink_tests/multi_reflink_test.c
> index bd980c6..dcb8e51 100755
> --- a/programs/reflink_tests/multi_reflink_test.c
> +++ b/programs/reflink_tests/multi_reflink_test.c
> @@ -1466,7 +1466,7 @@ static int stress_test(void)
>  			if (get_rand(0, 1))
>  				continue;
>  
> -			snprintf(ref_path, PATH_MAX, "%s_%dr%ld", orig_path,
> +			snprintf(ref_path, PATH_MAX, "%s_%dr%ld", dest,
>  				 rank, i);
>  
>  			if (truncate(ref_path, 0) < 0) {
> -- 
> 1.7.9.5
> 
> 
> _______________________________________________
> Ocfs2-test-devel mailing list
> Ocfs2-test-devel at oss.oracle.com
> https://oss.oracle.com/mailman/listinfo/ocfs2-test-devel
> 



More information about the Ocfs2-test-devel mailing list