[Ocfs2-test-devel] [PATCH 1/1] Ocfs-test: Let multi_reflink_test support >6 ranks for testing.

Tristan Ye tristan.ye at oracle.com
Tue Sep 14 20:44:18 PDT 2010


For more than 6 ranks testing workload, we only need one rank be responsible
for reflinking, while rest of ranks will be doing cows/reads/appends etc.

This patch fixes the issue of reflink existing targets when we got more
thank 6 ranks.

Signed-off-by: Tristan Ye <tristan.ye at oracle.com>
---
 programs/reflink_tests/multi_reflink_test.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/programs/reflink_tests/multi_reflink_test.c b/programs/reflink_tests/multi_reflink_test.c
index 6c951af..f352bd1 100755
--- a/programs/reflink_tests/multi_reflink_test.c
+++ b/programs/reflink_tests/multi_reflink_test.c
@@ -828,7 +828,7 @@ static int comp_test(void)
 
 	MPI_Barrier_Sync();
 
-	if (rank % 6 == 1) {
+	if (rank == 1) {
 		/*also doing reflinks and unlinks*/
 		printf("  *Test Rank %d: Doing reflinks,cows and unlink.\n",
 		       rank);
-- 
1.5.5




More information about the Ocfs2-test-devel mailing list