How to determine a dynamic volume offset and length on a dynamic disk?

Hi,

For a basic disk, the volume offset and length are managed by the partition table. But for a dynamic disk, there is only one partition in the partition table. This partition takes the whole disk space minus the space for meta-data, but this partition is hidden from the user. The volume management for dynamic disk is via the on-disk database. Since the size of a dynamic volume can grow, the space for a volume on a disk may not be contiguous.

So how can I determine where a volume on a dynamic disk is mapped to? I am only interested in the simple volume here. I could not find any useful information on this topic.

Thanks,
Joshie

> So how can I determine where a volume on a dynamic disk is mapped to?

IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS


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