Hi all,

the SCSI blacklist handling seems to be rather tricky issue;
everytime a fix is included it tends to break other devices.
This patchset attempt to simplify the devlist handling yet again,
but this time implementing the framework for regression testing, too.
So with this patchset we can implement a regression testing in
blocktests and validate any future fixes.

To implement blocktests one simply has to do:

modprobe scsi_debug inq_vendor="Inateck" inq_product="        "
cat /sys/block/sdX/device/blacklist

(which recreates the issue triggering commit b704f70ce2003)
and check if the blacklist value is correct.

As usual, comments and reviews are welcome.

Hannes Reinecke (4):
  scsi: whitespace fixes in scsi_devinfo.c
  scsi_devinfo: fixup string compare
  scsi_debug: allow to specify inquiry vendor and model
  scsi: Export blacklist flags to sysfs

 drivers/scsi/scsi_debug.c   | 25 +++++++++++------
 drivers/scsi/scsi_devinfo.c | 68 +++++++++++++++++++++++++--------------------
 drivers/scsi/scsi_scan.c    |  1 +
 drivers/scsi/scsi_sysfs.c   | 11 ++++++++
 4 files changed, 67 insertions(+), 38 deletions(-)

-- 
1.8.5.6

Reply via email to