[sheepdog-users] [PATCH stable-0.7] tests/func: use rc4 cipher command for openssl

Hitoshi Mitake mitake.hitoshi at lab.ntt.co.jp
Fri Dec 20 06:40:26 CET 2013


From: Liu Yuan <namei.unix at gmail.com>

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.

Reviewed-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
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 2a64b53..73b640d 100644
--- a/tests/functional/common.rc
+++ b/tests/functional/common.rc
@@ -482,7 +482,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.7.10.4




More information about the sheepdog-users mailing list