Storport enumerates as Jerry says. REPORT LUNS to LUN0 first, then INQUIRY to the reported LUNs, otherwise INQUIRY to LUN 0. Support for REPORT LUNS is mandatory unless you only have single LUNs.
(From SPC-2 or later
A SCSI device that is capable of supporting a LUN address other than zero shall support a REPORT LUNS command that
is addressed to logical unit zero. Support of the REPORT LUNS command by logical units other than logical unit
zero is optional. Support of the REPORT LUNS command on devices having only a single logical unit with the
logical unit number of zero is optional.)
SCSIport sends INQUIRY to LUN 0, REPORT LUNS to LUN 0, INQUIRY to LUNS 1-7, INQUIRY to other LUNS reported by REPORT LUNS. The algorithm can be modified using registry settings such as SparseLun and LargeLuns, otherwise HiSupp is checked before sending the REPORT LUNS. These parameters are covered in WinHEC/Devcon material. None of this applies to Storport.
From: xxxxx@attotech.com [mailto:xxxxx@attotech.com]
Sent: Wednesday, February 21, 2007 7:31 PM
Subject: RE: Re:PathId and PortId
Agreed, hopefully it would. If I get a chance, I’ll try it.
But that would depend on how it was failed. If I fail it with SRB_STATUS_SELECTION_TIMEOUT, they’d just skip to the next TargetId. I’d have to dummy up a SCSI status with sense data and all.
Alternatively … I think I have an old disk drive that doesn’t support Report LUNs.
Jerry.
Peter Wieland
Sent by: xxxxx@lists.osr.com
02/21/2007 08:34 PM
Please respond to
“Windows System Software Devs Interest List”
To
“Windows System Software Devs Interest List”
cc
Subject
RE: Re:[ntdev] PathId and PortId
Hopefully it would send an INQUIRY in that case.
You could find out in your miniport by failing SCSIOP_REPORT_LUNS rather than handing it off to the HBA J
-p
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@attotech.com
Sent: Wednesday, February 21, 2007 1:47 PM
To: Windows System Software Devs Interest List
Subject: RE: Re:[ntdev] PathId and PortId
Prior to Vista, Windows would:
Send Inquiry to LUN 0
If LargeLuns is set in the HBA’s registry info, send Report LUNs to LUN 0 with a byte count of 0x10 (not sure if they were also looking at the HISUPPORT bit in LUN 0 Inquiry Data)
If the above returns with a LUN list length indicating more than one LUN, issue another Report LUNs command with the correct length
EVEN IF Report LUNs returns success, send Inquiry to all LUNs 1 through 7 regardless of the LUN list returned above
Send Inquiry to any additional LUNs listed in the Report LUNs command
There is no requirement that there be no holes in the LUN numbers on Windows, but other operating systems do require this.
I have pleanty of Fibre Channel traces that will verify this.
It seems that Vista does things a bit differently. It:
Comes right out with Report LUNs to LUN 0, data length 0x10, regardless of the setting of the LargeLuns registry entry
If the above returns with a LUN list length indicating more than one LUN, issue another Report LUNs command with the correct length
If that succeeds, only sends Inquiries to LUNs listed in the Report LUNs results.
I have no ides right now what Vista would do if the Report LUNs command comes back with Check Condition - Command Not Supported.
Jerry.
Peter Wieland
Sent by: xxxxx@lists.osr.com
02/21/2007 11:43 AM
Please respond to
“Windows System Software Devs Interest List”
To
“Windows System Software Devs Interest List”
cc
Subject
RE: Re:[ntdev] PathId and PortId
LUN 6 or TARGET 6?
-p
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Loren Wilton
Sent: Wednesday, February 21, 2007 6:30 AM
To: Windows System Software Devs Interest List
Subject: Re: Re:[ntdev] PathId and PortId
> LUN numbers need more clarification. First, LUN 0 must exist. Second,
> sparse
Um. I’ve plenty of times configured systems with scsi controllers that only
had a single unit on LUN 4 or 6, and nothing on zero. Worked fine.
Now, in pc-land to boot I believe you need LUN 0 on the boot device cable.
That certainly isn’t true for other systems. Amigas have booted for decades
from LUN 6 with nothing else on the bus.
Loren
—
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
—
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
— Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
—
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer