HD device name

Hello

I’m trying to understand the HD device name or link conventions.
The Diskperf sample uses the IOCTL_STORAGE_GET_DEVICE_NUMBER
to obtain the HarddiskX\PartitionX device link. If this IOCTL fails it
uses the IOCTL_MOUNTDEV_QUERY_DEVICE_NAME to obtain the
device name.

I result is:

1.- For the first device of all disk, it always get the storage number.
2.- For the next devices, it gets the storage number for all partitions
except for the 1st HD that obtaon the device names HarddiskVolumeX.

My conclusion is that only for the partitions of the first HD the HD
driver create the HarddiskVolumeX device name and for the rest the
name is undefined. Is it right?

I have some answer too. Why returns and error
IOCTL_STORAGE_GET_DEVICE_NUMBER for the fisrt HD partitions
device. Why the first HD partitions device is HarddiskVolumeX?

Thanks in Advance. Tomas

> I’m trying to understand the HD device name or link conventions.

The Diskperf sample uses the IOCTL_STORAGE_GET_DEVICE_NUMBER
to obtain the HarddiskX\PartitionX device link. If this IOCTL fails it
uses the IOCTL_MOUNTDEV_QUERY_DEVICE_NAME to obtain the
device name.

IOCTL_STORAGE_GET_DEVICE_NUMBER succeeds for the first device on all HD, the
device representing the disk itself.

IOCTL_MOUNTDEV_QUERY_DEVICE_NAME succeds for all device objects. If DiskPerf
has been configured to run on top of Volume Mangers, name of device objects
depend on the VolumeManger which has created it.Names like HarddiskVolumX
will typically represents devices created by FTDISK.
And it represents devices on all disks and not just the first disk

I result is:

1.- For the first device of all disk, it always get the storage number.
2.- For the next devices, it gets the storage number for all partitions
except for the 1st HD that obtaon the device names HarddiskVolumeX.

My conclusion is that only for the partitions of the first HD the HD
driver create the HarddiskVolumeX device name and for the rest the
name is undefined. Is it right?

I have some answer too. Why returns and error
IOCTL_STORAGE_GET_DEVICE_NUMBER for the fisrt HD partitions
device. Why the first HD partitions device is HarddiskVolumeX?

Thanks in Advance. Tomas


You are currently subscribed to ntfsd as: xxxxx@Legato.COM
To unsubscribe send a blank email to $subst(‘Email.Unsub’)