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~~~