diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2009-09-21 00:49:38 +0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-10-02 18:47:04 +0400 |
commit | 4e7392ec582cf06753b0969ca9ab959923e38493 (patch) | |
tree | b630b857bd004612c14d4abe622c082b975e22fe /drivers/scsi/sd.h | |
parent | b4c2554d40ceac130a8d062eaa8838ed22158c45 (diff) | |
download | linux-4e7392ec582cf06753b0969ca9ab959923e38493.tar.xz |
[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 @@ */ #define SD_LAST_BUGGY_SECTORS 8 +enum { + SD_EXT_CDB_SIZE = 32, /* Extended CDB size */ + SD_MEMPOOL_SIZE = 2, /* CDB pool size */ +}; + struct scsi_disk { struct scsi_driver *driver; /* always &sd_template */ struct scsi_device *device; |