How to Provide support for formatting a Ramdisk?

Hello everyone,

I am studying the Ramdisk sample (KMDF one ) from the WDK.
It uses FAT32 as a hard coded file system format.
What changes are needed to support formatting the ramdisk instead of using the hardcoded file system?

Thank you.
Tushar.

Well, the way I did it, when I was experimenting with this, was to remove all the file system code, mount it as a drive letter, and then see what IOCTLs got sent to it during the (attempted) formatting process. Google is your friend during this process, and I also wrote an IOCTL decoder to help.

Note, however, that this is an example of how *not* to do a proper RAMdisk. Even if you finally managed to get this working, the mount manager APIs are totally undocumented, so it still won’t end up looking like a real disk.

-Steve

> Well, the way I did it, when I was experimenting with this, was to remove all
the file

system code, mount it as a drive letter, and then see what IOCTLs got sent to
it
during the (attempted) formatting process.

Length IOCTLs are surely sent, they must be serviced.


Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com