From: uba on 25 Jan 2010 12:24 Hello, When I install a disk lower filter I see all the SCSIOP_* arriving in the driver. However when I install disk upper filter I do not see any SCSI commands. How does the disk driver receive the SCSI commands and disk IOCTLs. Which driver sends the scsi commands /IOCTLs to disk driver. I could not track them in disk upper filter. Thanks and Regards, kid
From: Don Burn on 25 Jan 2010 12:31 Take a look at the disk.sys sources in the WDK. Disk.sys takes read, write and IOCTL requests and turns them into IRP_MJ_SCSI requests to forward to the port driver. So for the most part no one sends SCSI commands to the disk driver, the disk driver generates SCSI commands in response to requests. -- Don Burn (MVP, Windows DKD) Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr Remove StopSpam to reply "uba" <kid07.uba(a)gmail.com> wrote in message news:7753b2b4-4cec-4eda-b3b0-962b0321f679(a)j14g2000yqm.googlegroups.com... > Hello, > > When I install a disk lower filter I see all the SCSIOP_* arriving in > the driver. However when I install disk upper > filter I do not see any SCSI commands. > > How does the disk driver receive the SCSI commands and disk IOCTLs. > Which driver sends the scsi commands /IOCTLs to disk driver. I could > not track them in disk upper filter. > > Thanks and Regards, > kid > > __________ Information from ESET NOD32 Antivirus, version of virus > signature database 4804 (20100125) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.com > > > __________ Information from ESET NOD32 Antivirus, version of virus signature database 4804 (20100125) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
From: Maxim S. Shatskih on 25 Jan 2010 15:53 > filter I do not see any SCSI commands. Correct, Disk receives MJ_READ and MJ_WRITE and converts them to SCSI commands. -- Maxim S. Shatskih Windows DDK MVP maxim(a)storagecraft.com http://www.storagecraft.com
From: uba on 27 Jan 2010 05:47 Thanks for the replies. I'm able to understand now. I have one more question. To debug the disk driver can i replace the USB mass storage enumerated disk.sys with my disk driver. Is the disk sample a replicate of disk.sys present in system32/drivers folder. Thanks nd Regards, kid
From: Maxim S. Shatskih on 27 Jan 2010 07:27
> I have one more question. To debug the disk driver can i replace the > USB mass storage enumerated disk.sys with my disk driver. Is the disk > sample a replicate of disk.sys present in system32/drivers folder. Update ImagePath value instead. -- Maxim S. Shatskih Windows DDK MVP maxim(a)storagecraft.com http://www.storagecraft.com |