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