[stgt] [PATCH 1/1] READ6/WRITE6: A transfer length value of 0 means 256 blocks.

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Mon Apr 4 23:45:02 CEST 2011


On Tue, 5 Apr 2011 06:18:37 +1000
ronnie sahlberg <ronniesahlberg at gmail.com> wrote:

> From a1d75b96972b49702b9e413c6177447e840e10e4 Mon Sep 17 00:00:00 2001
> From: Ronnie Sahlberg <ronniesahlberg at gmail.com>
> Date: Tue, 5 Apr 2011 06:16:32 +1000
> Subject: [PATCH] READ6/WRITE6: A TransferLength of 0 means we want to transfer 256 blocks
> 
> Signed-off-by: Ronnie Sahlberg <ronniesahlberg at gmail.com>
> ---
>  usr/scsi.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/usr/scsi.c b/usr/scsi.c
> index cef231b..9ab1bde 100644
> --- a/usr/scsi.c
> +++ b/usr/scsi.c
> @@ -152,6 +152,9 @@ uint32_t scsi_rw_count(uint8_t *scb)
>  	case READ_6:
>  	case WRITE_6:
>  		cnt = scb[4];
> +		if (!cnt) {
> +			cnt = 256;
> +		}

I should have pointed out another style problem:

> +		if (!cnt)
> +			cnt = 256;

I fixed it and applied.


Thanks,

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



More information about the stgt mailing list