A step back…why do you need to be notified about volume change ?
Do you have any data structure that depends on volume size ?..do you
need to change it when volume size changes ?.
One alternative is to change the structure when an IO(write!) comes in
into the grown region.
That way you don’t have to worry about PNP notifications. Instead do the
extra work when required.
Harish
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Roddy, Mark
Sent: Wednesday, September 05, 2007 6:32 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] not getting resize notification for volume on
dynamic disk
The decision to implement functionality in the OS should be primarily
because there is no other way to do it.
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of pankaj kale
Sent: Wednesday, September 05, 2007 9:15 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] not getting resize notification for volume on
dynamic disk
Thanks Mark.
I will try to implement it in my service application. But, I thought it
would be easy if I can implement it in kernel.
-Pankaj
“Roddy, Mark” wrote:
Not that I know of. There probably is but it isn’t documented.
But why not use a service instead and have your service communicate with
your driver?
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of pankaj kale
Sent: Wednesday, September 05, 2007 1:48 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] not getting resize notification for volume
on dynamic disk
Thanks Mark.
I went through VDS user mode APIs. I think, I can do it in user
mode. But , I need to do it in kernel mode.
Is there any way I can do it in kernel ?
Mark Roddy wrote:
You might want to check into the VDS user mode apis. I
don’t remember offhand if they will specifically help you here, but they
provide a lot of information about disks/volumes/etc and do so for basic
and dynamic disks through one interface.
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of pankaj kale
Sent: Tuesday, September 04, 2007 2:56 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] not getting resize notification for
volume on dynamic disk
Hi,
I wrote a volume filter driver. My objective is to
detect volume resize for both basic and dynamic disk.
To get a notification, I registered with PNP manager for
EventCategoryTargetDeviceChange EventCategory using
IoRegisterPlugPlayNotification() API .
I got notification when I resized volume on basic disk.
But, I am not getting any notification when I resized volume on dynamic
disk. Is there any way that I can detect that volume on dynamic disk got
resized in my driver(volume filter) ?
Thanks in advance.
Regards,
Pankaj
Get the freedom to save as many mails as you wish. Click
here to know how.
http:mail/yahoomail/tools/tools-08.html/> — NTDEV is sponsored by OSR 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
—
NTDEV is sponsored by OSR
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
Try the revolutionary next-gen Yahoo! Mail. Click here.
http:ding> — NTDEV is sponsored by OSR 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—
NTDEV is sponsored by OSR
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 ________________________________
Get the freedom to save as many mails as you wish. Click here to know
how.
http:mail/yahoomail/tools/tools-08.html/> — NTDEV is sponsored by OSR 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—
NTDEV is sponsored by OSR
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</http:></http:></http:>