scsi: scsi: Export blacklist flags to sysfs
authorHannes Reinecke <hare@suse.de>
Mon, 2 Oct 2017 14:26:34 +0000 (16:26 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 17 Oct 2017 04:57:12 +0000 (00:57 -0400)
commit345e29608b4bb4b68c6c30667dda02d51484769e
tree1681ee62b3ed8b736d27f981f318df301edcc874
parente5203cf05282a41642edc55ac504efb8add2b17a
scsi: scsi: Export blacklist flags to sysfs

Each scsi device is scanned according to the found blacklist flags, but
this information is never presented to sysfs.  This makes it quite hard
to figure out if blacklisting worked as expected.  With this patch we're
exporting an additional attribute 'blacklist' containing the blacklist
flags for this device.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/Makefile
drivers/scsi/scsi_scan.c
drivers/scsi/scsi_sysfs.c