Re: Verification failures with mixed read/write case

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yup, that seems to have worked.

Thanks :)

On Ter, 2010-02-23 at 10:36 +0100, Jens Axboe wrote:
> OK, so this seems to be just a bug in sha256, it's working as expected
> here. Can you try the below patch?
> 
> diff --git a/verify.c b/verify.c
> index 59f1ddf..c894b60 100644
> --- a/verify.c
> +++ b/verify.c
> @@ -212,7 +212,7 @@ static int verify_io_u_sha256(struct verify_header *hdr, struct io_u *io_u,
>  {
>  	void *p = io_u_verify_off(hdr, io_u, header_num);
>  	struct vhdr_sha256 *vh = hdr_priv(hdr);
> -	uint8_t sha256[128];
> +	uint8_t sha256[64];
>  	struct sha256_ctx sha256_ctx = {
>  		.buf = sha256,
>  	};
> diff --git a/verify.h b/verify.h
> index c12bc7d..be98c54 100644
> --- a/verify.h
> +++ b/verify.h
> @@ -37,7 +37,7 @@ struct vhdr_sha512 {
>  	uint8_t sha512[128];
>  };
>  struct vhdr_sha256 {
> -	uint8_t sha256[128];
> +	uint8_t sha256[64];
>  };
>  struct vhdr_sha1 {
>  	uint32_t sha1[5];
> 


--
To unsubscribe from this list: send the line "unsubscribe fio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux