Re: [PATCH 1/2] target: Add target_complete_cmd_with_length()

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

 



Dear Roland Dreier,

On Tue, 10 Jun 2014 11:07:47 -0700, Roland Dreier wrote :
> When an initiator sends an allocation length bigger than what its
> command consumes, the target should only return the actual response data
> and set the residual length to the unused part of the allocation length.
> 
> Add a helper function that command handlers (INQUIRY, READ CAPACITY,
> etc) can use to do this correctly.
> 
> Signed-off-by: Roland Dreier <roland@xxxxxxxxxxxxxxx>

I tested your "target_complete_cmd_with_length" patches and they fix
the errors reported by the Windows Certification Kit where the length
of the transferred data is greater than the length stored in the CDB.

Moreover, I tested INQUIRY, READ CAPACITY, MODE SENSE and REPORT LUNS
commands with `sg3_utils` and everything was fine.

Tested-by: Christophe Vu-Brugier <cvubrugier@xxxxxxxx>

Thank you!

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




[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux