when insert removable media,what's happen?

I developped a disk upper filter (just for USB bustype).
I add my DO in AddDevice;
I analyze the disk layout in pnp-start_device completion;

But,If it’s a USB card reader with removable media:
evenif the media is not inserted,my pnp-start_device dispatch routine is called too.

I observed the work flow when the removable media insert:
1.IOCTL_STORAGE_CHECK_VERIFY sended to my filter
2.IOCTL_DISK_GET_DRIVE_GEOMETRY sended to my filter

3.IOCTL_STORAGE_MEDIA_REMOVAL sended to my filter
4.IOCTL_DISK_IS_WRITABLE sended to my filter

what’s happen?when I do my analyze the disk layout?
I think IOCTL_STORAGE_CHECK_VERIFY is the key,what’s the details?
thanks~~~

> I think IOCTL_STORAGE_CHECK_VERIFY is the key,what’s the details?

Yes, you need to know a lot about this “verify required” path. This path will possibly allow you to track media changes.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com