How to make a device mountable?

Hi,

I am writing a volume driver. This driver acts a mirror
driver. It accepts the data comes from the upper volume
and writes them into two disks separately. To make the PDO
created by this driver mountable, the driver should
register this PDO as an entry of device interface
MOUNTDEV_MOUNTED_DEVICE_GUID. When the PDO registers the
device interface and activates it, mount manager sends
IOCTL_MOUNTDEV_QUERY_DEVICE_NAME IRP to the PDO.

However, mount manager seems not been satisfied with the
PDO’s response. The PDO dose answer the control IRP in
the way DDK documents saying, but mount manager
continually sends the same request about 5-7 times. And
after this, mount manager gives up the query. But, it
doesn’t send the control IRP
IOCTL_MOUNTDEV_QUERY_UNIQUE_ID. And this is the most
important IRP mount manager should sends.

My question is do I miss something important to make a
device mountable.

Thanks in advance for your answers

Derren


Derren Lu
Synology Inc.
Email: xxxxx@synology.com