dave wysochanski 84961f28e9 [SCSI] Don't add scsi_device for devices that return PQ=1, PDT=0x1f
Some targets may return slight variations of PQ and PDT to indicate
no LUN mapped.  USB UFI setting PDT=0x1f but having reserved bits for
PQ is one example, and NetApp targets returning PQ=1 and PDT=0x1f is
another.  Both instances seem like reasonable responses according to
SPC-3 and UFI specs.

The current scsi_probe_and_add_lun() code adds a scsi_device
for targets that return PQ=1 and PDT=0x1f.  This causes LUNs of type
"UNKNOWN" to show up in /proc/scsi/scsi when no LUNs are mapped.
In addition, subsequent rescans fail to recognize LUNs that may be
added on the target, unless preceded by a write to the delete attribute
of the "UNKNOWN" LUN.

This patch addresses this problem by skipping over the scsi_add_lun()
when PQ=1,PDT=0x1f is encountered, and just returns
SCSI_SCAN_TARGET_PRESENT.

Signed-off-by: Dave Wysochanski <davidw@netapp.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
2006-08-19 13:37:40 -07:00
..
2006-08-02 10:53:18 -04:00
2006-07-03 09:41:12 -05:00
2006-07-03 09:41:12 -05:00
2006-07-03 09:41:12 -05:00
2006-08-04 09:28:43 -04:00
2006-07-03 09:41:12 -05:00
2006-06-30 19:25:36 +02:00
2006-07-24 22:47:14 -07:00
2006-08-06 15:59:26 -05:00
2006-08-06 15:59:26 -05:00
2006-08-06 15:50:50 -05:00
2006-08-06 15:51:12 -05:00
2006-05-20 09:35:20 -05:00
2006-06-25 10:00:58 -07:00
2006-06-25 10:00:58 -07:00
2006-08-06 15:59:26 -05:00
2006-06-26 09:58:18 -07:00
2006-07-03 09:41:12 -05:00
2006-07-03 09:41:12 -05:00
2006-06-26 09:30:00 -05:00
2006-08-06 15:59:26 -05:00
2006-08-06 15:59:26 -05:00
2006-07-03 09:41:12 -05:00
2006-07-09 11:27:03 -05:00
2006-06-29 11:06:30 -04:00