Hi
I am developing virtual Storport SCSI Controller to Report a Virtual Disk(which will be in the form of a file)
During StartIo , I get a Call SCSIOP_REPORT_LUNS , How do I handle this call If I were to report a Virtual Disk
Virtual SCSI Cotnroller Shows Up fine ,
I get a Yellow Bang for the Reported SCSI Virtual Disk.
What Am i setting wrong ? Is it because of SCSIOP_REPORT_LUNS call which just blindly completed ?
Below is the call sequence of reqeusts .
Thanks,
Manohara
STORMINI: Entering HwBuildIo
STORMINI: Leaving HwBuildIo
STORMINI: Entering HwStartIo : Function ID = , 0x0
STORMINI: Received SRB_FUNCTION_EXECUTE_SCSI Received = , 0xA0
STORMINI: Received SCSIOP_REPORT_LUNS Received
STORMINI: Leaving HwStartIo
STORMINI: Entering HwBuildIo
STORMINI: Leaving HwBuildIo
STORMINI: Entering HwStartIo : Function ID = , 0x0
STORMINI: Received SRB_FUNCTION_EXECUTE_SCSI Received = , 0xA0
STORMINI: Received SCSIOP_REPORT_LUNS Received
STORMINI: Leaving HwStartIo
STORMINI: Entering HwBuildIo
STORMINI: Leaving HwBuildIo
STORMINI: Entering HwStartIo : Function ID = , 0x0
STORMINI: Received SRB_FUNCTION_EXECUTE_SCSI Received = , 0xA0
STORMINI: Received SCSIOP_REPORT_LUNS Received
STORMINI: Leaving HwStartIo
STORMINI: Entering HwBuildIo
STORMINI: Leaving HwBuildIo
STORMINI: Entering HwStartIo : Function ID = , 0x0
STORMINI: Received SRB_FUNCTION_EXECUTE_SCSI Received = , 0x12
STORMINI: Received SCSIOP_INQUIRY Received
STORMINI: Leaving HwStartIo
STORMINI: Entering HwBuildIo
STORMINI: Leaving HwBuildIo
STORMINI: Entering HwStartIo : Function ID = , 0x0
STORMINI: Received SRB_FUNCTION_EXECUTE_SCSI Received = , 0x12
STORMINI: Received SCSIOP_INQUIRY Received
STORMINI: Leaving HwStartIo
STORMINI: Entering HwBuildIo
STORMINI: Leaving HwBuildIo
STORMINI: Entering HwStartIo : Function ID = , 0x0
STORMINI: Received SRB_FUNCTION_EXECUTE_SCSI Received = , 0x12
STORMINI: Received SCSIOP_INQUIRY Received
STORMINI: Leaving HwStartIo
STORMINI: Entering HwBuildIo
STORMINI: Leaving HwBuildIo
STORMINI: Entering HwStartIo : Function ID = , 0x17
STORMINI: Received Unhandled SRB_FUNCTION
STORMINI: Leaving HwStartIo
STORMINI: Entering HwBuildIo
STORMINI: Leaving HwBuildIo
STORMINI: Entering HwStartIo : Function ID = , 0x17
STORMINI: Received Unhandled SRB_FUNCTION
STORMINI: Leaving HwStartIo
STORMINI: Entering HwAdapterControl
STORMINI: Leaving HwAdapterControl
A disk drive does not “blindly complete” commands it doesn’t understand. It reports check condition, illegal request sense data. Or in your case, you should make your virtual drive compliant with an appropriate disk command specification. It’s going to cause field problems if you just willy nilly pick and choose what you want to support and how you will respond. You need to do it right if you want true compatibility.
Read the SCSI spec about this call. This call allows sparse LUN numbering.
Without this call supported, SCSIPORT will try LUN0, then LUN1, then LUN2 etc -
till the first failed LUN, so, no sparse LUN numbering.
The data returned by REPORT LUNS is the bitmap which says what LUN numbers
are valid for the device and what are not.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From:
To: “Windows System Software Devs Interest List”
Sent: Friday, July 14, 2006 8:18 PM
Subject: [ntdev] SCSIOP_REPORT_LUNS
> Hi
>
> I am developing virtual Storport SCSI Controller to Report a Virtual
Disk(which will be in the form of a file)
>
> During StartIo , I get a Call SCSIOP_REPORT_LUNS , How do I handle this call
If I were to report a Virtual Disk
>
> Virtual SCSI Cotnroller Shows Up fine ,
> I get a Yellow Bang for the Reported SCSI Virtual Disk.
>
> What Am i setting wrong ? Is it because of SCSIOP_REPORT_LUNS call which just
blindly completed ?
>
> Below is the call sequence of reqeusts .
>
> Thanks,
> Manohara
>
> STORMINI: Entering HwBuildIo
> STORMINI: Leaving HwBuildIo
> STORMINI: Entering HwStartIo : Function ID = , 0x0
> STORMINI: Received SRB_FUNCTION_EXECUTE_SCSI Received = , 0xA0
> STORMINI: Received SCSIOP_REPORT_LUNS Received
> STORMINI: Leaving HwStartIo
> STORMINI: Entering HwBuildIo
> STORMINI: Leaving HwBuildIo
> STORMINI: Entering HwStartIo : Function ID = , 0x0
> STORMINI: Received SRB_FUNCTION_EXECUTE_SCSI Received = , 0xA0
> STORMINI: Received SCSIOP_REPORT_LUNS Received
> STORMINI: Leaving HwStartIo
> STORMINI: Entering HwBuildIo
> STORMINI: Leaving HwBuildIo
> STORMINI: Entering HwStartIo : Function ID = , 0x0
> STORMINI: Received SRB_FUNCTION_EXECUTE_SCSI Received = , 0xA0
> STORMINI: Received SCSIOP_REPORT_LUNS Received
> STORMINI: Leaving HwStartIo
> STORMINI: Entering HwBuildIo
> STORMINI: Leaving HwBuildIo
> STORMINI: Entering HwStartIo : Function ID = , 0x0
> STORMINI: Received SRB_FUNCTION_EXECUTE_SCSI Received = , 0x12
> STORMINI: Received SCSIOP_INQUIRY Received
> STORMINI: Leaving HwStartIo
> STORMINI: Entering HwBuildIo
> STORMINI: Leaving HwBuildIo
> STORMINI: Entering HwStartIo : Function ID = , 0x0
> STORMINI: Received SRB_FUNCTION_EXECUTE_SCSI Received = , 0x12
> STORMINI: Received SCSIOP_INQUIRY Received
> STORMINI: Leaving HwStartIo
> STORMINI: Entering HwBuildIo
> STORMINI: Leaving HwBuildIo
> STORMINI: Entering HwStartIo : Function ID = , 0x0
> STORMINI: Received SRB_FUNCTION_EXECUTE_SCSI Received = , 0x12
> STORMINI: Received SCSIOP_INQUIRY Received
> STORMINI: Leaving HwStartIo
> STORMINI: Entering HwBuildIo
> STORMINI: Leaving HwBuildIo
> STORMINI: Entering HwStartIo : Function ID = , 0x17
> STORMINI: Received Unhandled SRB_FUNCTION
> STORMINI: Leaving HwStartIo
> STORMINI: Entering HwBuildIo
> STORMINI: Leaving HwBuildIo
> STORMINI: Entering HwStartIo : Function ID = , 0x17
> STORMINI: Received Unhandled SRB_FUNCTION
> STORMINI: Leaving HwStartIo
> STORMINI: Entering HwAdapterControl
> STORMINI: Leaving HwAdapterControl
>
>
> —
> 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