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>
This commit is contained in:

committed by
Martin K. Petersen

parent
e5203cf052
commit
345e29608b
@@ -984,6 +984,7 @@ static int scsi_add_lun(struct scsi_device *sdev, unsigned char *inq_result,
|
||||
scsi_attach_vpd(sdev);
|
||||
|
||||
sdev->max_queue_depth = sdev->queue_depth;
|
||||
sdev->sdev_bflags = *bflags;
|
||||
|
||||
/*
|
||||
* Ok, the device is now all set up, we can
|
||||
|
Reference in New Issue
Block a user