[sheepdog] [PATCH] tests/func: use rc4 cipher command for openssl

Liu Yuan namei.unix at gmail.com
Fri Dec 20 05:41:08 CET 2013


On ubuntu 13.04, _random() always cause segfault because of it triggers a bug
for aes-128-cbc cipher command.

By using rc4, it achieves the same throughput as aes-128-cbc and workaround the
segfault.

Signed-off-by: Liu Yuan <namei.unix at gmail.com>
---
 tests/functional/common.rc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/functional/common.rc b/tests/functional/common.rc
index 221d760..3785bae 100644
--- a/tests/functional/common.rc
+++ b/tests/functional/common.rc
@@ -486,7 +486,7 @@ _cluster_format()
 
 _random()
 {
-	openssl enc -aes-128-cbc -pass pass:"$(date)" -nosalt < /dev/zero 2>/dev/null
+	openssl enc -rc4 -pass pass:"$(date)" -nosalt < /dev/zero 2>/dev/null
 }
 
 _one()
-- 
1.8.1.2




More information about the sheepdog mailing list