Re: [PATCH 2/3] target: Fix range calculation in WRITE SAME emulation when num blocks == 0

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

 



On Mon, Jul 16, 2012 at 03:17:11PM -0700, Roland Dreier wrote:
> From: Roland Dreier <roland@xxxxxxxxxxxxxxx>
> 
> When NUMBER OF LOGICAL BLOCKS is 0, WRITE SAME is supposed to write
> all the blocks from the specified LBA through the end of the device.
> However, dev->transport->get_blocks(dev) (perhaps confusingly) returns
> the last valid LBA rather than the number of blocks, so the correct
> number of blocks to write starting with lba is
> 
>     dev->transport->get_blocks(dev) - lba + 1

Can you add a test case for that to the SCSI test suite?

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