Re: How to determine logical volume given a device instance

Max -

Thank you for the reply. I’ve looked at
IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS and related functions, but they seem
to me to be related to the layout of partitions on the media rather than on
the logical addressing of those partitions within the system. Perhaps I’m
wrong?

As far as the “device removal applet” is concerned, it does in fact display
the logical volume(s) associated with a physical device in its display. To
see this you need to open the applet (double-click on its tool-tray icon)
and select the physical device to be stopped. The applet then displays a
confirmation dialog in which you see the logical volume(s) in addition to
the physical device. That is why I asserted the the applet must in fact
have access to this knowledge.

Nonetheless, thanks again for the reply.

-Robert

At 06:50 PM 4/11/2002 +0400, you wrote:

> I see that DeviceTree does indeed show a continuing child relationship
> which leads to an entry like:
>
> \device\Harddisk2\DR7
>
> which in turn leads to device object for individual volumes.

Maybe IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS can help?

> The Windows “device removal applet” also knows how to enumerate the
> relationship between physical devices and their logical volumes.

Not necessary. Only the volume manager in the kernel can know this. This
is enough for the removal to be handled OK.

Max


You are currently subscribed to ntdev as: xxxxx@computing-machines-corp.com
To unsubscribe send a blank email to %%email.unsub%%