Shrink and Extend operations on Vista above systems

Hi All,

I want to capture Volume Shrink and Extend operations in my volume filter.

I thought IOCTL_DISK_GROW_PARTITION or IOCTL_DISK_SET_DRIVE_LAYOUT will be
the ones which will be sent to volume stack.

I printed all IOCTLs (with their device types, io type, code number) that I
was receiving when I did shrink and extend operations on a particular
volume.
However I didn’t receive much ioctls other than some VolSnap IOCTLS (0x6,
0x16, etc which are obviously undocumented, So I don’t what’s happening
there).

Can any one help what I am doing wrong here and suggest me the correct way
to get shrink and extend operations in volume filter.

Thanks in advance
Deepak

Partitioning IOCTLs are sent to the physical disk driver stack, not the logical volume stack. You’re probably too high to see them.

-p

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Deepak Gupta
Sent: Tuesday, February 09, 2010 11:26 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Shrink and Extend operations on Vista above systems

Hi All,

I want to capture Volume Shrink and Extend operations in my volume filter.

I thought IOCTL_DISK_GROW_PARTITION or IOCTL_DISK_SET_DRIVE_LAYOUT will be the ones which will be sent to volume stack.

I printed all IOCTLs (with their device types, io type, code number) that I was receiving when I did shrink and extend operations on a particular volume.
However I didn’t receive much ioctls other than some VolSnap IOCTLS (0x6, 0x16, etc which are obviously undocumented, So I don’t what’s happening there).

Can any one help what I am doing wrong here and suggest me the correct way to get shrink and extend operations in volume filter.

Thanks in advance
Deepak
— 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

Yeah right those IOCTLs are sent to physical disk stack.

But how does vista and above performs shrink and extend operations on
volumes.
For shrink FS need to move data from end of volume to start of volume and
then send shrink or partitioning IOCTL operation downwards (I assume this
how it should happen).

Regards
Deepak

On Wed, Feb 10, 2010 at 1:21 PM, Peter Wieland wrote:

> Partitioning IOCTLs are sent to the physical disk driver stack, not the
> logical volume stack. You?re probably too high to see them.
>
>
>
> -p
>
>
>
> From: xxxxx@lists.osr.com [mailto:
> xxxxx@lists.osr.com] *On Behalf Of *Deepak Gupta
> Sent: Tuesday, February 09, 2010 11:26 PM
>
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Shrink and Extend operations on Vista above systems
>
>
>
> Hi All,
>
> I want to capture Volume Shrink and Extend operations in my volume filter.
>
> I thought IOCTL_DISK_GROW_PARTITION or IOCTL_DISK_SET_DRIVE_LAYOUT will be
> the ones which will be sent to volume stack.
>
> I printed all IOCTLs (with their device types, io type, code number) that I
> was receiving when I did shrink and extend operations on a particular
> volume.
> However I didn’t receive much ioctls other than some VolSnap IOCTLS (0x6,
> 0x16, etc which are obviously undocumented, So I don’t what’s happening
> there).
>
> Can any one help what I am doing wrong here and suggest me the correct way
> to get shrink and extend operations in volume filter.
>
> Thanks in advance
> Deepak
> — 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
>

Is it true for LDM volumes as well. ?

From: Peter Wieland [mailto:xxxxx@microsoft.com]
Sent: Tuesday, February 09, 2010 11:51 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Shrink and Extend operations on Vista above systems

Partitioning IOCTLs are sent to the physical disk driver stack, not the
logical volume stack. You’re probably too high to see them.

-p

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Deepak Gupta
Sent: Tuesday, February 09, 2010 11:26 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Shrink and Extend operations on Vista above systems

Hi All,

I want to capture Volume Shrink and Extend operations in my volume
filter.

I thought IOCTL_DISK_GROW_PARTITION or IOCTL_DISK_SET_DRIVE_LAYOUT will
be the ones which will be sent to volume stack.

I printed all IOCTLs (with their device types, io type, code number)
that I was receiving when I did shrink and extend operations on a
particular volume.
However I didn’t receive much ioctls other than some VolSnap IOCTLS
(0x6, 0x16, etc which are obviously undocumented, So I don’t what’s
happening there).

Can any one help what I am doing wrong here and suggest me the correct
way to get shrink and extend operations in volume filter.

Thanks in advance
Deepak
— 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