Martin K. Petersen fe542396da [SCSI] sd: Ensure we correctly disable devices with unknown protection type
We set the capacity to zero when we discovered a device formatted with
an unknown DIF protection type. However, the read_capacity code would
override the capacity and cause the device to be enabled regardless.

Make sd_read_protection_type() return an error if the protection type is
unknown. Also prevent duplicate printk lines when the device is being
revalidated.

Reported-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
2012-09-24 13:01:24 +04:00
..
2012-03-22 12:55:29 -07:00
2012-02-19 08:08:58 -06:00
2012-05-23 09:40:09 +01:00
2009-12-30 12:23:27 -08:00
2009-03-12 12:58:06 -05:00
2007-10-12 14:51:56 -04:00
2007-10-12 14:37:50 -04:00
2005-04-16 15:20:36 -07:00
2010-03-12 15:53:10 -08:00