[stgt] [PATCH 1/1] READ6/WRITE6: A transfer length value of 0 means 256 blocks.
ronnie sahlberg
ronniesahlberg at gmail.com
Mon Apr 4 22:18:37 CEST 2011
Please find attached an updated patch
regards
ronnie sahlberg
On Tue, Apr 5, 2011 at 12:30 AM, FUJITA Tomonori
<fujita.tomonori at lab.ntt.co.jp> wrote:
> On Mon, 4 Apr 2011 19:07:25 +1000
> ronnie sahlberg <ronniesahlberg at gmail.com> wrote:
>
>> From 90ef6c74e08d02400433ad523b6e14820b8b66c9 Mon Sep 17 00:00:00 2001
>> From: Ronnie Sahlberg <ronniesahlberg at gmail.com>
>> Date: Mon, 4 Apr 2011 19:02:59 +1000
>> Subject: [PATCH] READ6/WRITE6 A transfer length value of 0 means the SCSI task will read/write
>> 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..b46d4c1 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 == 0) {
>
> if (!cnt) {
>
> It's Linux kernel style.
>
> Can you send the updated patch?
>
> Thanks,
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-READ6-WRITE6-A-TransferLength-of-0-means-we-want-to-.patch.gz
Type: application/x-gzip
Size: 445 bytes
Desc: not available
URL: <http://lists.wpkg.org/pipermail/stgt/attachments/20110405/1a6d5e24/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-READ6-WRITE6-A-TransferLength-of-0-means-we-want-to-.patch
Type: text/x-diff
Size: 681 bytes
Desc: not available
URL: <http://lists.wpkg.org/pipermail/stgt/attachments/20110405/1a6d5e24/attachment-0002.patch>
More information about the stgt
mailing list