From: anton_kolomyeytsev@hotmail.com Sent: Sunday, August 26, 2001 10:40 AM To: NT Developers Interest List Subject: [ntdev] Re: any help to port winNT scsi miniport driver to win9x Raj, IFSMgr_Ring0_FileIO together with file system hook that patches "container" file attributes to make the file system driver (VFAT mostly) think it's memory-mapped and not cached file is the way Microsoft recommends to write the drivers that manage virtual volumes. As I remember there is file on Microsoft site called "IOSGuide.doc" that describes this technique and some other recommendations you could pay some attention on as well. I think that's what Jamey will tell you to do (as this is really very simple way). But this is not safe way and MS people does not use it themself if you care. If you will not flush the cache on the drive that holds your "container" file (Remember, you're working with this file as it's not cached! Interesting, yeah?) the system will crash... There are other situations that make the code like this behave very bad. I'm not gonna list them as this is not the right place I think. In the same time Microsoft itself writes this kind of drivers in totally different way. It's the way DriveSpace for example works. They get the chain of the clusters (with the special API if you're interested) that belong to the "container" file in the very begining of the driver's work and process the actual sectors on the disk (w/o use of file system driver surely). So you deal only with IOS and your code bypasses IFSMgr, VCache and VFAT. This is secret MS does not want you to know. So write me a private e-mail and I'll show you how to do this. Sorry it's really not very easy way. But it's correct way. Regards, Anton Kolomyeytsev CoolDev.Com - Toolkits for Network & Storage Kernel Software Developers "KoolSockets" & "KoolStorage" - TDI Client, Kernel Sockets, iSCSI port www.CoolDev.Com KoolSocketsInfo@CoolDev.Com KoolStorageInfo@CoolDev.Com On 08/26/01, ""Jamey Kirby" " wrote: > Raj, > > Try Ring0_FileIO > > If you get stuck, send me some private email and I will help you fix the > blocking issue when it arises. It is quite simple, but I need to dig up > the code. > > Jamey > jkirby@storagecraft.com > > > -----Original Message----- > From: bounce-ntdev-562@lists.osr.com > [mailto:bounce-ntdev-562@lists.osr.com] On Behalf Of > anton_kolomyeytsev@hotmail.com > Sent: Sunday, August 26, 2001 12:00 AM > To: NT Developers Interest List > Subject: [ntdev] Re: any help to port winNT scsi miniport driver to > win9x > > > Hi Raj, > > Some time ago (when our storage products were based on SCSI miniport > ideology) we just made our SCSI miniport link to own library that > depending > of the OS was #define'ing file I/O stuff either as wrappers over ZwXxx > services (if Windows NT/2K was the target) or own VFAT, VCACHE & IFSMGR > replacer code (you'll definitely hit famous IFSMgr_Block problem and > VFAT > non-reentrancy when you'll be porting your SCSI miniport to Windows > 9X/ME, > as CDFS will be on the top of storage stack not VFAT it's not so > difficult > to resolve as you do not emulate hard disk but prepare for nighmare) if > the > target was Windows 9X/ME. > > Wish you luck! > > Regards, > Anton Kolomyeytsev > > CoolDev.Com - Toolkits for Network & Storage Kernel Software Developers > "KoolSockets" & "KoolStorage" - TDI Client, Kernel Sockets, iSCSI port > www.CoolDev.Com KoolSocketsInfo@CoolDev.Com KoolStorageInfo@CoolDev.Com > > > On 08/25/01, "Raj Somsubhra " wrote: > > Hi all, > > > > We've written a scsi miniport driver for winNT to for > > a virtual cdrom drive which is working fine. So, we > > had to use some file operatiosn in the low level and > > for that we used 'ntddk.h' . Now I'm facing problem in porting it for > > Win9x because of those fileIO calls . I want to replace those for > > Win9x. Can I get some tips or tricks from anyone...... > > > > som > > > > __________________________________________________ > > Do You Yahoo!? > > Make international calls for as low as $.04/minute with Yahoo! > > Messenger http://phonecard.yahoo.com/ > > > > --- > > You are currently subscribed to ntdev as: jkirby@storagecraft.com To > > unsubscribe send a blank email to leave-ntdev-247T@lists.osr.com > > --- > You are currently subscribed to ntdev as: jkirby@storagecraft.com To > unsubscribe send a blank email to leave-ntdev-247T@lists.osr.com > > > --- > You are currently subscribed to ntdev as: GlennEverhart@FirstUSA.com > To unsubscribe send a blank email to leave-ntdev-247T@lists.osr.com --- You are currently subscribed to ntdev as: GlennEverhart@FirstUSA.com To unsubscribe send a blank email to leave-ntdev-247T@lists.osr.com