summaryrefslogtreecommitdiff
path: root/include/scsi
diff options
context:
space:
mode:
authorJason J. Herne <hernejj@gmail.com>2012-11-14 17:03:22 -0500
committerJames Bottomley <JBottomley@Parallels.com>2012-11-27 09:00:38 +0400
commit53ad570be625045aba3ae7de8d82401364c655e1 (patch)
tree3034c3094a3ae501b0b53ebd2149fd93f4d9b5df /include/scsi
parent0b4334473d48aa18e8448f9f718f1dcd0398c550 (diff)
downloadlinux-3.10-53ad570be625045aba3ae7de8d82401364c655e1.tar.gz
linux-3.10-53ad570be625045aba3ae7de8d82401364c655e1.tar.bz2
linux-3.10-53ad570be625045aba3ae7de8d82401364c655e1.zip
[SCSI] sd: Use SCSI read/write(16) with > 32-bit LBA drives
Force large capacity (> 0xFFFFFFFF blocks) drives to use READ/WRITE(16) instead of READ/WRITE(10). Some(most/all?) USB enclosures do not like READ(10) commands when a large capacity drive is installed. This issue was reported and discussed here: http://marc.info/?l=linux-usb&m=135247705222324 Signed-off-by: Jason J. Herne <hernejj@gmail.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'include/scsi')
-rw-r--r--include/scsi/scsi_device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h
index 55367b04dc9..e65c62e82c5 100644
--- a/include/scsi/scsi_device.h
+++ b/include/scsi/scsi_device.h
@@ -137,6 +137,7 @@ struct scsi_device {
unsigned use_10_for_ms:1; /* first try 10-byte mode sense/select */
unsigned no_report_opcodes:1; /* no REPORT SUPPORTED OPERATION CODES */
unsigned no_write_same:1; /* no WRITE SAME command */
+ unsigned use_16_for_rw:1; /* Use read/write(16) over read/write(10) */
unsigned skip_ms_page_8:1; /* do not use MODE SENSE page 0x08 */
unsigned skip_ms_page_3f:1; /* do not use MODE SENSE page 0x3f */
unsigned skip_vpd_pages:1; /* do not read VPD pages */