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

Junxiao Bi junxiao.bi at oracle.com
Sun Sep 13 19:44:27 PDT 2015


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




More information about the Ocfs2-test-devel mailing list