[SCSI] sd: Export effective protection mode in sysfs
commit518fa8e39bafd2431c28adb8822bb6c3e4d1a390
authorMartin K. Petersen <martin.petersen@oracle.com>
Fri, 8 Oct 2010 05:36:24 +0000 (8 01:36 -0400)
committerJames Bottomley <James.Bottomley@suse.de>
Mon, 25 Oct 2010 19:57:44 +0000 (25 14:57 -0500)
tree081b80a9ae9cee54018272cf331800d2dc52e6ab
parent349ed5a060397fcccc542a0314f236b420bd4ad1
[SCSI] sd: Export effective protection mode in sysfs

Create a sysfs entry that reports the negotiated DIX/DIF protection mode
for a SCSI disk. This depends on the protection type the disk is
formatted with as well as the protection capabilities advertised by the
controller.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/sd.c