[SCSI] sd: Support disks formatted with DIF Type 2
authorMartin K. Petersen <martin.petersen@oracle.com>
Sun, 20 Sep 2009 20:49:38 +0000 (16:49 -0400)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 2 Oct 2009 14:47:04 +0000 (09:47 -0500)
commit4e7392ec582cf06753b0969ca9ab959923e38493
treeb630b857bd004612c14d4abe622c082b975e22fe
parentb4c2554d40ceac130a8d062eaa8838ed22158c45
[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>
drivers/scsi/sd.c
drivers/scsi/sd.h
include/scsi/scsi.h