QueryDosDevice not returning all PhysicalDrives

Hi

Environment:

  • Windows Server 2003 x64 Enterprise Edition
  • Server is connected to a RAID Subsystem that has 256 LUs.

I am calling QueryDosDevice (win32 api) function from VC program to
get all physicaldrives (First parameter is NULL).

QueryDosDevice returns only 173 PhysicalDrives. I am expecting
QueryDosDevice to return all 256 PhysicalDrives.

I checked the buffer size passed to QueryDosDevice. It is 32Kbyte. Enough
size.
QueryDosDevice return value is 23612.

Is there any known issue for QueryDosDevice?

Thanks,
KPR

This looks like it may belong in ntdev more than ntfsd. This question is
related to the storage stack, disk manager, and the volume manager.

“Raju” wrote in message news:xxxxx@ntfsd…
> Hi
>
> Environment:
> - Windows Server 2003 x64 Enterprise Edition
> - Server is connected to a RAID Subsystem that has 256 LUs.
>
> I am calling QueryDosDevice (win32 api) function from VC program to
> get all physicaldrives (First parameter is NULL).
>
> QueryDosDevice returns only 173 PhysicalDrives. I am expecting
> QueryDosDevice to return all 256 PhysicalDrives.
>
> I checked the buffer size passed to QueryDosDevice. It is 32Kbyte. Enough
> size.
> QueryDosDevice return value is 23612.
>
> Is there any known issue for QueryDosDevice?
>
> Thanks,
> KPR
>
>

I feel, this has nothing to do with ntdev list.
Because MMC (Disk Manager) is showing all the
256 Disks.

Some problem with QueryDosDevice function.

If I pass NULL as a first parameter to QueryDosDevice,
it returns only 173 disks (not in the serial order) info.

But If I pass “\.\physicaldrive255” (this is not returned with NULL as
first parameter) as first parameter then it returns correct info.

How to get all the 256 disks with NULL as a first parameter to
QueryDosDevice function?

Thanks
KPR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of David J. Craig
Sent: Tuesday, July 26, 2005 10:11 AM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] QueryDosDevice not returning all PhysicalDrives

This looks like it may belong in ntdev more than ntfsd. This question is
related to the storage stack, disk manager, and the volume manager.

“Raju” wrote in message news:xxxxx@ntfsd…
> > Hi
> >
> > Environment:
> > - Windows Server 2003 x64 Enterprise Edition
> > - Server is connected to a RAID Subsystem that has 256 LUs.
> >
> > I am calling QueryDosDevice (win32 api) function from VC program to
> > get all physicaldrives (First parameter is NULL).
> >
> > QueryDosDevice returns only 173 PhysicalDrives. I am expecting
> > QueryDosDevice to return all 256 PhysicalDrives.
> >
> > I checked the buffer size passed to QueryDosDevice. It is
> 32Kbyte. Enough
> > size.
> > QueryDosDevice return value is 23612.
> >
> > Is there any known issue for QueryDosDevice?
> >
> > Thanks,
> > KPR
> >
> >
>
>
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@pst.fujitsu.com
To unsubscribe send a blank email to xxxxx@lists.osr.com