diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2009-09-20 16:49:38 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-10-02 10:47:04 -0400 |
commit | 4e7392ec582cf06753b0969ca9ab959923e38493 (patch) | |
tree | b630b857bd004612c14d4abe622c082b975e22fe /drivers/scsi/sd.h | |
parent | b4c2554d40ceac130a8d062eaa8838ed22158c45 (diff) |
[SCSI] sd: Support disks formatted with DIF Type 2
Disks formatted with DIF Type 2 reject READ/WRITE 6/10/12/16 commands
when protection is enabled. Only the 32-byte variants are supported.
Implement support for issusing 32-byte READ/WRITE and enable Type 2
drives in the protection type detection logic.
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/sd.h')
-rw-r--r-- | drivers/scsi/sd.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/scsi/sd.h b/drivers/scsi/sd.h index ce1f5f899fe3..e374804d26fb 100644 --- a/drivers/scsi/sd.h +++ b/drivers/scsi/sd.h | |||
@@ -37,6 +37,11 @@ | |||
37 | */ | 37 | */ |
38 | #define SD_LAST_BUGGY_SECTORS 8 | 38 | #define SD_LAST_BUGGY_SECTORS 8 |
39 | 39 | ||
40 | enum { | ||
41 | SD_EXT_CDB_SIZE = 32, /* Extended CDB size */ | ||
42 | SD_MEMPOOL_SIZE = 2, /* CDB pool size */ | ||
43 | }; | ||
44 | |||
40 | struct scsi_disk { | 45 | struct scsi_disk { |
41 | struct scsi_driver *driver; /* always &sd_template */ | 46 | struct scsi_driver *driver; /* always &sd_template */ |
42 | struct scsi_device *device; | 47 | struct scsi_device *device; |