[sheepdog] [PATCH] test: Implentment fast random on AES

Joseph Glanville joseph at cloudscaling.com
Mon May 6 09:50:14 CEST 2013


Cheers, will fix it up. Would still be useful to have a fast random
generator (this one does about 1.5GB/s on my machine)


On Mon, May 6, 2013 at 12:48 AM, Liu Yuan <namei.unix at gmail.com> wrote:

> On 05/06/2013 03:36 PM, Joseph Glanville wrote:
> > +#!/bin/bash
> > +openssl enc -aes-256-ctr -pass pass:"$(dd if=/dev/urandom bs=128
> count=1 2>/dev/null | base64)" -nosalt < /dev/zero | cat
>
> The script didn't work, see following output with your patch applied:
>
> ====================
> yliu at K55VM-ubuntu:~/sheepdog/tests$ sudo ./check 008
> PLATFORM      -- Linux/x86_64 K55VM-ubuntu 3.7.0
>
> 008 Last Used:94s.  Test doing heavy IO while confchg change - output
> mismatch (see 008.out.bad)
> --- 008.out     2013-03-20 16:38:45.092403504 +0800
> +++ 008.out.bad 2013-05-06 15:42:09.233368939 +0800
> @@ -2,3 +2,8 @@
>  using backend farm store
>  begin kill
>  wait for object recovery to finish
> +error writing output file
> +error writing output file
> +error writing output file
> +error writing output file
> +error writing output file
> Failures: 008
> Failed 1 of 1 tests
>
> =====================
>
> And it is better to write a function _random() in common.rc. Also
> Signed-Of-By line is missing, please see
>
> https://github.com/collie/sheepdog/wiki/Submit-a-patch
>
> for more information
>
> Thanks,
> Yuan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/sheepdog/attachments/20130506/8eefb21e/attachment-0004.html>


More information about the sheepdog mailing list