"DeviceNumber" returned by IOCTL_STORAGE_GET_DEVICE_NUMBER

How do I use the “DeviceNumber” value returned by
IOCTL_STORAGE_GET_DEVICE_NUMBER to obtain the DEVICEOBJECT for the physical
storage device? I have 4 mounted volumes - two are from two different CDROM
drives and two are from two different hard drives. The “DeviceNumber”
values for the two CDROM drives are 0 and 1. The “DeviceNumber” values for
the two hard drives are also 0 and 1. What is going on?

I also get 0 and 1 for the “DiskNumber” value returned by
IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS. Since a single volume can span
multiple physical disks, I prefer to use this control call but it doesn’t
work with CDROM drives (status = 0xC0000002 = STATUS_NOT_IMPLEMENTED). Any
ideas why?

Thank you,
Ray Martin


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

CDROM class doesn’t support that 'cause it doesn’t need it. How do you
imagine a CD spanning several CDROM drives?

Regards,
Max

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of
rmartin@ez-datatech.com
Sent: Sunday, August 19, 2001 10:29 PM
To: File Systems Developers
Subject: [ntfsd] “DeviceNumber” returned by
IOCTL_STORAGE_GET_DEVICE_NUMBER

How do I use the “DeviceNumber” value returned by
IOCTL_STORAGE_GET_DEVICE_NUMBER to obtain the DEVICEOBJECT for the physical
storage device? I have 4 mounted volumes - two are from two different CDROM
drives and two are from two different hard drives. The “DeviceNumber”
values for the two CDROM drives are 0 and 1. The “DeviceNumber” values for
the two hard drives are also 0 and 1. What is going on?

I also get 0 and 1 for the “DiskNumber” value returned by
IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS. Since a single volume can span
multiple physical disks, I prefer to use this control call but it doesn’t
work with CDROM drives (status = 0xC0000002 = STATUS_NOT_IMPLEMENTED). Any
ideas why?

Thank you,
Ray Martin


You are currently subscribed to ntfsd as: xxxxx@acronis.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Thank you for your answer about the CDROM part of my question. But I still
need to know how to use the “DeviceNumber” value returned by
IOCTL_STORAGE_GET_DEVICE_NUMBER (or “DiskNumber” value returned by
IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS) to obtain the DEVICEOBJECT for the
physical storage device.

Ray Martin

On 08/20/01, ““Max Lyadvinsky” ” wrote:
> CDROM class doesn’t support that 'cause it doesn’t need it. How do you
> imagine a CD spanning several CDROM drives?
>
> Regards,
> Max
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of
> rmartin@ez-datatech.com
> Sent: Sunday, August 19, 2001 10:29 PM
> To: File Systems Developers
> Subject: [ntfsd] “DeviceNumber” returned by
> IOCTL_STORAGE_GET_DEVICE_NUMBER
>
>
> How do I use the “DeviceNumber” value returned by
> IOCTL_STORAGE_GET_DEVICE_NUMBER to obtain the DEVICEOBJECT for the physical
> storage device? I have 4 mounted volumes - two are from two different CDROM
> drives and two are from two different hard drives. The “DeviceNumber”
> values for the two CDROM drives are 0 and 1. The “DeviceNumber” values for
> the two hard drives are also 0 and 1. What is going on?
>
> I also get 0 and 1 for the “DiskNumber” value returned by
> IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS. Since a single volume can span
> multiple physical disks, I prefer to use this control call but it doesn’t
> work with CDROM drives (status = 0xC0000002 = STATUS_NOT_IMPLEMENTED). Any
> ideas why?
>
> Thank you,
> Ray Martin
>
> —
> You are currently subscribed to ntfsd as: xxxxx@acronis.com
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
> —
> You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Open device object by name \Device\Harddisk%d, where %d - DiskNumber.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of
rmartin@ez-datatech.com
Sent: Tuesday, August 21, 2001 11:01 AM
To: File Systems Developers
Subject: [ntfsd] RE: “DeviceNumber” returned by
IOCTL_STORAGE_GET_DEVICE_NUMBER

Thank you for your answer about the CDROM part of my question. But I still
need to know how to use the “DeviceNumber” value returned by
IOCTL_STORAGE_GET_DEVICE_NUMBER (or “DiskNumber” value returned by
IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS) to obtain the DEVICEOBJECT for the
physical storage device.

Ray Martin

On 08/20/01, ““Max Lyadvinsky” ” wrote:
> CDROM class doesn’t support that 'cause it doesn’t need it. How do you
> imagine a CD spanning several CDROM drives?
>
> Regards,
> Max
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of
> rmartin@ez-datatech.com
> Sent: Sunday, August 19, 2001 10:29 PM
> To: File Systems Developers
> Subject: [ntfsd] “DeviceNumber” returned by
> IOCTL_STORAGE_GET_DEVICE_NUMBER
>
>
> How do I use the “DeviceNumber” value returned by
> IOCTL_STORAGE_GET_DEVICE_NUMBER to obtain the DEVICEOBJECT for the
physical
> storage device? I have 4 mounted volumes - two are from two different
CDROM
> drives and two are from two different hard drives. The “DeviceNumber”
> values for the two CDROM drives are 0 and 1. The “DeviceNumber” values for
> the two hard drives are also 0 and 1. What is going on?
>
> I also get 0 and 1 for the “DiskNumber” value returned by
> IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS. Since a single volume can span
> multiple physical disks, I prefer to use this control call but it doesn’t
> work with CDROM drives (status = 0xC0000002 = STATUS_NOT_IMPLEMENTED). Any
> ideas why?
>
> Thank you,
> Ray Martin
>
> —
> You are currently subscribed to ntfsd as: xxxxx@acronis.com
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@acronis.com
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: xxxxx@acronis.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com