[PATCH] ieee1394: sbp2: add support for disks >2 TB (and CBSs >12 bytes)

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

 



We forgot to set Scsi_Host.max_cmd_len.  Therefore SCSI core sent at
most 12 bytes long commands to FireWire targets.  Among else, this
prevented support of disks larger than 2 TB.

Signed-off-by: Stefan Richter <stefanr@xxxxxxxxxxxxxxxxx>
---
 drivers/ieee1394/sbp2.c |    6 ++++++
 1 file changed, 6 insertions(+)

Index: b/drivers/ieee1394/sbp2.c
===================================================================
--- a/drivers/ieee1394/sbp2.c
+++ b/drivers/ieee1394/sbp2.c
@@ -881,6 +881,12 @@ static struct sbp2_lu *sbp2_alloc_device
 
 	shost->hostdata[0] = (unsigned long)lu;
 
+	/*
+	 * SBP-2 does not impose limits on the CDB length.  Targets may have
+	 * limits, but this is going to be reported at the command set level.
+	 */
+	shost->max_cmd_len = SCSI_MAX_VARLEN_CDB_SIZE;
+
 	if (!scsi_add_host(shost, &ud->device)) {
 		lu->shost = shost;
 		return lu;

-- 
Stefan Richter
-=====-==--= -==- ===-=
http://arcgraph.de/sr/

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux