Re: [PATCH 2/3] target: Handle 0 correctly in transport_get_sectors_6()

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

 



On Tue, 2011-11-22 at 13:51 -0800, Roland Dreier wrote:
> From: Roland Dreier <roland@xxxxxxxxxxxxxxx>
> 
> SBC-3 says:
> 
>     A TRANSFER LENGTH field set to zero specifies that 256 logical
>     blocks shall be written.  Any other value specifies the number
>     of logical blocks that shall be written.
> 
> The old code was always just returning the value in the TRANSFER LENGTH
> byte.  Fix this to return 256 if the byte is 0.
> 
> Signed-off-by: Roland Dreier <roland@xxxxxxxxxxxxxxx>
> ---
>  drivers/target/target_core_transport.c |    9 +++++++--
>  1 files changed, 7 insertions(+), 2 deletions(-)

Applied.  Thanks!

--nab

--
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