I have mirroring filter driver instaled in my system.
when I restart the system I see that IRP_MN_REMOVE_DEVICE is being called
sometimes.
I see that this IRP is issued by pnp manager during resource balancing
sometimes at the boot time.
I detach my filter device object and destroy it when I receive this IRP.
Now what happens is that the pnp manager enumerates the device again and
hence it calls the Adddevice routine of my filter driver.
I create a filter device object in my adddevice routine and attach it to the
volume device object that I got as from pnp manager as input paramater.
But I see that file system is not getting mounted on that partition.
Is there anything I need to do in filter driver for this.
can anybody tell me why file system driver is not getting mounted???
I posted this question alreadyin other forum,but no reply:(
But I am stuck here. can anybody there help me out on this.
I tried checking if I am blocking an IOCTL in my filter driver.
Even that didnt help me out.
How should I handle this??
ANy help would be great use to me.I am stuck with this issue for more than a
month not sure how to address it.
currently I am not handling any PNP IRPs other that IRP_MN_REMOVE_DEVICE and IRP_MN_DEVICE_USAGE_NOTIFICATION.
I am passing everything down the stack using Ioskipcurrentstacklocation()
should I handle any other PNP IRPs otehr than this???
when I right clcik and see the partition properties in diskmanagemnet console I see that across file system:“RAW” is mentioned. I know that file system NTFS is not mounted.
But not sure why it is not gettin mounted.
any thoughts on this???
You can avoid all or most of this PNP handling by moving to KMDF. KMDF
framework will handle all PNP states for you. However, If you are
interested in any PNP state, you can always “opt in” by registering your
notification handler.
BTW: ntdev is the right place to discuss volume filters.
cheers
Harish
-----Original Message-----
From: xxxxx@yahoo.co.in [mailto:xxxxx@yahoo.co.in]
Sent: Monday, February 09, 2009 3:47 AM
To: Windows File Systems Devs Interest List
Subject: RE:[ntfsd] doubts in resource rebalancing +
irp_mn_remove_device
currently I am not handling any PNP IRPs other that IRP_MN_REMOVE_DEVICE
and IRP_MN_DEVICE_USAGE_NOTIFICATION.
I am passing everything down the stack using
Ioskipcurrentstacklocation()
should I handle any other PNP IRPs otehr than this???
when I right clcik and see the partition properties in diskmanagemnet
console I see that across file system:“RAW” is mentioned. I know that
file system NTFS is not mounted.
But not sure why it is not gettin mounted.
any thoughts on this???
NTFSD is sponsored by OSR
For our schedule of debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Thanks for the reply.
I cannot change my driver to kmdf now.
Its already high time for me to fix the issue with the existing driver.
I have posted in the otehr forum also.
Hoping to get a reply