Dynamically add/remove partitions in upper volume filter driver.

Hi,

I am working on an upper volume filter driver using diskperf as base.
The main purpose of our driver is to monitor changes at the sector level.
I want to know how can I add/remove specific partitions when the system is running, without restarting it?

add remove partitions as in start or stop monitoring partitions or actually
deleting those partitions from the system?

if it is the former, then once your driver is attached to the stck it cant
be removed without restarting, so the only way left for you is to disable
all of your business logic and run in pass through mode if the volume is
not of interest to you…

On Mon, Jul 8, 2013 at 7:14 PM, wrote:

> Hi,
>
> I am working on an upper volume filter driver using diskperf as base.
> The main purpose of our driver is to monitor changes at the sector level.
> I want to know how can I add/remove specific partitions when the system is
> running, without restarting it?
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars 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
>



- ab

Hi,

Actually what I want to do is monitor only those partitions that are selected by the user.
The user app will tell the driver that stop monitoring specific partitions.
I thought of to save the partition number that should not be monitored in the registry , so when the system reboots the driver will read the partition no. from registry in the “Adddevice” routine and it will not create device object for it.

So now my question is whether to filter the partitions in the “Adddevice” routine or in the “PNP” routine i.e in “case IRP_MN_START_DEVICE”.
Also how can I map partition number and device object?

Thanks in advance.

Hi,

Can any one provide me any kind of solution to my problem.
How can I install upper volume filter driver for a particular partition and uninstall it for a specific partition?
I looked at the addfilter utility of Microsoft but it did not helped. I tried using it to install upper volume filter for one of my non system partition but on reboot the partition disappeared.

Can anyone give me some inputs?

Thanks in advance.

You cannot dynamically install/uninstall what you can do is create a call to
disable your filtering actions or re-enable them. But for things like
replacing the filter you have to reboot.

Don Burn
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@hotmail.com
Sent: Friday, July 12, 2013 7:08 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Dynamically add/remove partitions in upper volume filter
driver.

Hi,

Can any one provide me any kind of solution to my problem.
How can I install upper volume filter driver for a particular partition and
uninstall it for a specific partition?
I looked at the addfilter utility of Microsoft but it did not helped. I
tried using it to install upper volume filter for one of my non system
partition but on reboot the partition disappeared.

Can anyone give me some inputs?

Thanks in advance.


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars 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

Hi,

Thanks for replying.
If I don’t have any problem in rebooting then what kind of call I have to make, can you please explain it in detail?