And as pointed out here by Girish, please do NOT do this for Server
2003. Instead, use the CreateInitiatorLU entry in your INF. Also, set a
BusType value (default is SCSI for scsiport, Fibre for Storport).
Check the Archives, this question was asked sometime back …
If you are on Win2k3, this link should help (check out
CreateInitiatorLU)
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/storag
e/hh/storage/02mnport_8tgn.asp)
-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Tuesday, June 15, 2004 12:28 PM
Subject: Re: Re:Re:IOCTL_SCSI_MINIPORT problem
For a fake LUN, create the driver-less INF file section (details are
documented).
The PnP ID for all SCSI devices - your fake LUN included - is built
from
the INQUIRY data, and the details are documented again - the PnP docs
section
about how PnP IDs are formed for well-known busses.
So - respond to INQUIRY in your fake LUN, do NOT use the
disk/CD/tape
device type - use Processor - and fill INQUIRY data with some strings of
yours.
Then use the same strings in the PnP ID in the INF file.
This will lead to a sane display of the fake LUN in the Device
Manager. You
can use the INF file for HighPoint 370 as a reference - they use the
same
approach.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “shakeel”
Newsgroups: ntdev
To: “Windows System Software Devs Interest List”
Sent: Tuesday, June 15, 2004 10:56 PM
Subject: Re:[ntdev] Re:IOCTL_SCSI_MINIPORT problem
> Max,
>
> Actually mine is miniport for a IDE controller. So, currently I set
the
>
> PORT_CONFIGURATION_INFORMATION->MaximumNumberOfTargets = 4;
> PORT_CONFIGURATION_INFORMATION->MaximumNumberOfLogicalUnits = 1;
>
> If I change the NumberOfTargets = 5, and invent the INQUIRY data for
the 5th
> one. Is that all I need to do? Should I need to handle other SRB
requests
> for this fake Target?if not, what status I should return
SRB_STATUS_ERROR
> for all other requests?
>
> Max, I didn’t understand the second part, listing of PnP ID in INF
file.
> Presently, I am listing the PCI VENDER/DEVICE ID for the controller.
Do I
> need to list one for the Disk also? Sorry! for my ignorance here.
>
> Thanks,
> Shakeel.
> “Maxim S. Shatskih” wrote in message
> news:xxxxx@ntdev…
> > > The fake LUN created would appear in the Device Manager. correct?
> >
> > Yes.
> >
> > >I don’t want the user to see it
> >
> > Why not? Name it like “MyAdapter Control Device” and this will be
OK. To
> do
> > this, invent the proper INQUIRY for it, and list the PnP ID (based
on
> INQUIRY)
> > in your INF file.
> >
> > HighPoint does this for years.
> >
> > Maxim Shatskih, Windows DDK MVP
> > StorageCraft Corporation
> > xxxxx@storagecraft.com
> > http://www.storagecraft.com
> >
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com