And Storport enforces this rule whereas scsiport did/does not. This is
the most common problem we see.
-----Original Message-----
From: Henry Gabryjelski
Sent: Wednesday, May 18, 2005 9:43 AM
Subject: RE: Migrating to Storport Environment
Just a note: It is technically not allowed to send IO to the device
until the START_DEVICE irp has been sent. You may want to move this
from your AddDevice() into your StartDevice() routine.
.
-----Original Message-----
From: Raju [mailto:xxxxx@pst.fujitsu.com]
Sent: Monday, May 16, 2005 10:36 PM
Subject: RE: Migrating to Storport Environment
Thanks for the mail, Maxim.
Our storage filter driver’s AddDevice routine does the following
things…
-
Constructing a SRB with Srb.function set to
SRB_FUNCTION_EXECUTE_SCSI
with cdb opcode SCSIOP_INQUIRY
-
After setting the appropriate values in the Srb structure, Builds
an
Irp using
IoBuildDeviceIoControlRequest function. Uses IOCTL_SCSI_EXECUTE_IN
as
the
first parameter to the function. And a pointer to FDO (FDO of
\Device\ScsiPortX)
as the second parameter.
-
Sends the Irp down the device stack using IoCallDriver function.
The above logic works fine with SCSIport driver but fails in Storport
driver.
Call to IoCallDriver in step3 returns STATUS_UNSUCCESSFUL in case of
Storport driver.
Any Idea???
Thanks,
KPR
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Maxim S.
Shatskih
Sent: Thursday, May 12, 2005 3:20 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Migrating to Storport Environment
Try sending the command to LUN devices instead. Or use the PnP
device
interfaces to SCSI controllers.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Raju”
> To: “Windows System Software Devs Interest List”
> Sent: Thursday, May 12, 2005 4:43 AM
> Subject: RE: [ntdev] Migrating to Storport Environment
>
>
> > Thanks for the info, Maxim.
> >
> > But…
> >
> > Our filter driver gets the FDO of SCSIport driver and issues
> > SCSIOP_INQUIRY cdb command to SCSIport driver.
> >
> > To get FDO of SCSIport driver, we are using the function
> > IoGetDeviceObjectPointer with the first parameter set to
> > “\Device\ScsiPortX”.
> >
> > Is this device name still valid with Storport driver?
> >
> > -KPR.
> >
> > > -----Original Message-----
> > > From: xxxxx@lists.osr.com
> > > [mailto:xxxxx@lists.osr.com]On Behalf Of Maxim
> S. Shatskih
> > > Sent: Thursday, May 12, 2005 2:51 AM
> > > To: Windows System Software Devs Interest List
> > > Subject: Re: [ntdev] Migrating to Storport Environment
> > >
> > >
> > > Usually no need in any changes. I had this kind of CD
> filter which was
> > > working on IDE, SCSI, USB and 1394 by design.
> > >
> > > Maxim Shatskih, Windows DDK MVP
> > > StorageCraft Corporation
> > > xxxxx@storagecraft.com
> > > http://www.storagecraft.com
> > >
> > > ----- Original Message -----
> > > From: “Raju”
> > > To: “Windows System Software Devs Interest List”
> > > Sent: Wednesday, May 11, 2005 8:20 AM
> > > Subject: [ntdev] Migrating to Storport Environment
> > >
> > >
> > > > Hi
> > > >
> > > > We have a SFD (storage filter driver) that sits just above the
port
> > > > (SCSIport) driver
> > > > and intercepts the calls to port driver.
> > > >
> > > > Now that MS has released a new port driver (Storport), we would
> > > like to make
> > > > our filter driver to work with Storport driver.
> > > >
> > > > I could not find any references or links related to migration
> > > issues on web
> > > > or DDK.
> > > > Most of the information is for Storport miniport drivers.
> > > >
> > > > Please guide me.
> > > >
> > > > Thanks,
> > > > KPR
> > > >
> > > >
> > > > —
> > > > 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
> > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@pst.fujitsu.com
> > To unsubscribe send a blank email to
xxxxx@lists.osr.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
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@pst.fujitsu.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>