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-19 13:35:11 -07:00
2006-07-21 12:04:53 -07:00
2006-06-30 19:25:36 +02:00
2006-08-02 10:53:18 -04:00
2006-07-26 07:30:45 -07:00
2006-06-30 19:25:36 +02:00
2006-07-09 11:28:58 -05:00
2006-07-09 10:49:39 -05:00
2006-07-28 13:48:14 -05:00
2006-07-03 09:41:12 -05:00
2006-07-03 09:41:12 -05:00
2006-07-02 13:58:53 -07:00
2006-07-02 13:58:53 -07:00
2006-07-02 13:58:53 -07:00
2006-07-14 09:41:13 -05:00
2006-07-03 09:41:12 -05:00
2006-06-29 13:15:15 -04:00
2006-07-02 13:58:53 -07:00
2006-07-02 13:58:53 -07:00
2006-07-02 13:58:53 -07:00
2006-08-04 09:28:43 -04:00
2006-07-09 11:56:44 -05:00
2006-06-30 19:25:36 +02:00
2006-07-02 13:58:53 -07:00
2006-07-05 22:58:20 -04:00
2006-07-02 13:58:53 -07:00
2006-06-30 19:25:36 +02:00
2006-07-16 11:48:28 -04:00
2006-07-14 09:41:13 -05:00
2006-06-30 19:25:36 +02:00
2006-07-03 09:41:12 -05:00
2006-07-02 13:58:53 -07:00
2006-07-02 13:58:53 -07:00
2006-07-02 13:58:53 -07:00
2006-06-30 19:25:36 +02:00
2006-06-30 19:25:36 +02:00
2006-07-09 09:10:06 -05:00
2006-07-02 13:58:53 -07:00
2006-07-02 13:58:53 -07:00
2006-07-02 13:58:53 -07:00
2006-07-02 13:58:53 -07:00
2006-07-02 13:58:53 -07:00
2006-07-02 13:58:53 -07:00
2006-07-02 13:58:53 -07:00
2006-07-02 13:58:53 -07:00
2006-07-02 13:58:53 -07:00
2006-07-24 22:47:14 -07:00
2006-06-23 23:15:54 -07:00
2006-07-02 13:58:53 -07:00
2006-08-06 15:59:26 -05:00
2006-07-02 13:58:53 -07:00
2006-07-02 13:58:53 -07:00
2006-06-30 19:25:36 +02:00
2006-08-06 15:59:26 -05:00
2006-06-30 19:25:36 +02:00
2006-06-10 10:24:40 -05:00
2006-06-10 10:24:40 -05:00
2006-06-10 10:24:40 -05:00
2006-07-02 13:58:53 -07:00
2006-06-10 10:24:40 -05:00
2006-07-02 13:58:53 -07:00
2006-08-06 11:36:23 -05:00
2006-07-02 13:58:53 -07:00
2006-06-10 10:36:13 -05:00
2006-07-02 13:58:53 -07:00
2006-06-30 19:25:36 +02:00
2006-06-30 19:25:36 +02:00
2006-06-26 18:19:23 +02:00
2006-07-02 13:58:53 -07:00
2006-07-02 13:58:53 -07:00
2006-06-30 19:25:36 +02:00
2006-08-06 15:50:50 -05:00
2006-08-06 15:51:12 -05:00
2006-07-02 13:58:53 -07:00
2006-06-29 11:07:54 -04:00
2006-05-20 09:35:20 -05:00
2006-07-14 09:41:13 -05:00
2006-07-28 14:13:40 -05:00
2006-07-02 13:58:53 -07:00
2006-07-02 13:58:53 -07:00
2006-07-05 22:17:47 -04:00
2006-07-05 22:16:28 -04:00
2006-07-05 22:16:28 -04:00
2006-06-26 20:59:27 -04:00
2006-06-29 11:09:06 -04:00
2006-07-14 09:41:13 -05:00
2006-06-25 10:00:58 -07:00
2006-06-25 10:00:58 -07:00
2006-07-28 14:13:40 -05:00
2006-08-06 15:59:26 -05:00
2006-07-14 09:41:13 -05:00
2006-06-26 09:58:18 -07:00
2006-06-30 19:25:36 +02:00
2006-06-10 10:45:30 -05:00
2006-07-26 07:30:45 -07:00
2006-06-30 19:25:36 +02:00
2006-07-02 13:58:53 -07:00
2006-07-12 12:03:43 -04:00
2006-07-02 13:58:53 -07:00
2006-07-03 09:41:12 -05:00
2006-07-02 13:58:53 -07:00
2006-06-30 19:25:36 +02:00
2006-06-23 07:43:02 -07:00
2006-06-30 19:25:36 +02:00
2006-07-02 13:58:53 -07:00
2006-07-02 13:58:53 -07:00
2006-07-14 09:41:13 -05:00
2006-06-30 19:25:36 +02:00
2006-06-26 18:19:23 +02:00
2006-07-03 09:41:12 -05:00
2006-07-14 09:41:13 -05:00
2006-06-10 10:45:30 -05:00
2006-07-02 13:58:53 -07:00
2006-06-30 19:25:36 +02:00
2006-07-02 13:58:53 -07:00
2006-07-02 13:58:53 -07:00
2006-07-05 22:16:28 -04:00
2006-07-05 22:16:28 -04:00
2006-06-30 19:25:36 +02:00
2006-07-02 13:58:53 -07:00
2006-07-02 13:58:53 -07:00
2006-06-30 19:25:36 +02:00
2006-07-02 13:58:53 -07:00
2006-07-05 21:44:45 -04:00
2006-07-12 11:57:28 -04:00
2006-06-26 09:30:00 -05:00
2006-07-09 11:56:44 -05:00
2006-06-10 16:24:40 -05:00
2006-08-19 13:31:53 -07:00
2006-06-30 19:25:36 +02:00
2006-07-09 11:56:44 -05:00
2006-08-06 15:59:26 -05:00
2006-06-28 12:40:54 -04:00
2006-08-19 13:37:40 -07:00
2006-06-30 19:25:36 +02:00
2006-05-20 00:39:08 -04:00
2006-06-27 11:01:46 -05:00
2006-06-29 11:14:42 -04:00
2006-07-12 09:20:01 -04:00
2006-06-30 19:25:36 +02:00
2006-06-10 16:24:40 -05:00
2006-08-06 15:59:26 -05:00
2006-06-10 16:24:40 -05:00
2006-06-26 16:33:10 -05:00
2006-07-09 11:56:44 -05:00
2006-07-14 09:41:13 -05:00
2006-07-03 09:41:12 -05:00
2006-07-02 13:58:53 -07:00
2006-06-30 19:25:36 +02:00
2006-07-09 11:56:44 -05:00
2006-07-09 11:27:03 -05:00
2006-06-29 11:06:30 -04:00
2006-07-14 09:41:13 -05:00
2006-07-14 09:41:13 -05:00
2006-07-02 13:58:53 -07:00
2006-07-02 13:58:53 -07:00
2006-06-30 19:25:36 +02:00
2006-07-02 13:58:53 -07:00
2006-07-14 09:41:13 -05:00
2006-06-30 19:25:36 +02:00
2006-07-02 13:58:53 -07:00
2006-07-02 13:58:53 -07:00