I have a lower filter driver(sits below file system driver)
From the application I pass IOCTL_DISK_GET_DRIVE_LAYOUT ioctl.
I get error as my partition style is GPT.
I am not supporting GPT Partition style for now in my driver.so I wanted to
log the error in system logs from the driver if it is GPT.
But when I tried to log it I see that the particularIOCTL never reaches my
driver.
Is it possible that file system driver can return error for this IOCTL.
I tried checking with irp tracker .when I select my driver and see for the
occurence of the particular IOCTL I am not seeing the IOCTL.
when I select the corresponding GPT disk in select disk menu I see the IOCTL
that is required.
Is it that the IOCTL is returned back with error code by file system driver
before even my filter receives it.
I also see that the error code is INVALID_DEVICE_REQUEST in IRP Tracker.
I believed that disk.sys is responsible for the above IOCTL.so I expected my
that IOCTL_DISK_GET_DRIVE_LAYOUT should reach my driver.But I am not sure
whether my driver receives the IOCTL.
Can anybody help on this.
does file system driver have any specific check in it.

Re: IOCTL_DISK_GET_DRIVE_LAYOUT doubt by Maxim

Maxim
Mon May 05 13:24:06 CDT 2008

Try IOCTL_DISK_GET_DRIVE_LAYOUT_EX

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

"qwert" <qwert@discussions.microsoft.com> wrote in message
news:51C42F00-B504-4369-8330-3D37A8E27F2C@microsoft.com...
> I have a lower filter driver(sits below file system driver)
> From the application I pass IOCTL_DISK_GET_DRIVE_LAYOUT ioctl.
> I get error as my partition style is GPT.
> I am not supporting GPT Partition style for now in my driver.so I wanted to
> log the error in system logs from the driver if it is GPT.
> But when I tried to log it I see that the particularIOCTL never reaches my
> driver.
> Is it possible that file system driver can return error for this IOCTL.
> I tried checking with irp tracker .when I select my driver and see for the
> occurence of the particular IOCTL I am not seeing the IOCTL.
> when I select the corresponding GPT disk in select disk menu I see the IOCTL
> that is required.
> Is it that the IOCTL is returned back with error code by file system driver
> before even my filter receives it.
> I also see that the error code is INVALID_DEVICE_REQUEST in IRP Tracker.
> I believed that disk.sys is responsible for the above IOCTL.so I expected my
> that IOCTL_DISK_GET_DRIVE_LAYOUT should reach my driver.But I am not sure
> whether my driver receives the IOCTL.
> Can anybody help on this.
> does file system driver have any specific check in it.