SCSI Miniport virtualdisk driver 64 bit Disk Management issue

hello everyone,
i am developing a scsi miniport driver that emulates disk on a file.
This is a wdf driver. on Windows XP 32 bit, it works fine with all disk
management operations on it.
There are no issues here.
But when i tried this on windows 2K3 64 bit OS, driver though got installed
and received ioctls such as
SCSI_READ_CAPACITY,
SCS_MODE_SENSE,
IOCTL_SCSI_GET_ADDRESS,
IOCTL_STORAGE_QUERY_PROPERTY,
SCSI_TEST_UNIT_READY,
SCSIO_READ
etc etc.

disk failed to appear in windows disk management.
Is there some different way to handle data structures for the above
mentioned IOCTLS or i am missing something in 64 bit case.

N.B : The filedisk size is 1GB.
Also is there a way to do things (one ioctl at a time) what disk management
does just to figure out
at what stage things went wrong.

Any pointers would be highly appreciated.

Thanks in advance.

Which WDF? KMDF or UMDF? SCSI miniports are not usually written using KMDF or UMDF and it may not be possible to use UMDF though I guess someone could force KMDF to do a little for them. A SCSI miniport is NOT a good way to implement virtual disk drives. Most use a full SCSI port driver to do this for XP and earlier. StorPort supports a virtual StorPort miniport model suited for this type of driver. Have you tried using Driver Verifier?
“Mudassar Tamboli” wrote in message news:xxxxx@ntdev…
hello everyone,

i am developing a scsi miniport driver that emulates disk on a file.
This is a wdf driver. on Windows XP 32 bit, it works fine with all disk management operations on it.
There are no issues here.
But when i tried this on windows 2K3 64 bit OS, driver though got installed
and received ioctls such as
SCSI_READ_CAPACITY,
SCS_MODE_SENSE,
IOCTL_SCSI_GET_ADDRESS,
IOCTL_STORAGE_QUERY_PROPERTY,
SCSI_TEST_UNIT_READY,
SCSIO_READ
etc etc.

disk failed to appear in windows disk management.
Is there some different way to handle data structures for the above
mentioned IOCTLS or i am missing something in 64 bit case.

N.B : The filedisk size is 1GB.

Also is there a way to do things (one ioctl at a time) what disk management does just to figure out
at what stage things went wrong.
Any pointers would be highly appreciated.

Thanks in advance.

>disk failed to appear in windows disk management.
Could you see your disk in Device Manager? If you do, just enable your disk. After that you could see it in Disk Management Panel.

Igor Sharovar

Hi,

The driver is not miniport driver…but a kmdf based driver.

Disabling Virtual Disk Service solved the problem.

On 11/9/09, xxxxx@hotmail.com wrote:
>
> >disk failed to appear in windows disk management.
> Could you see your disk in Device Manager? If you do, just enable your
> disk. After that you could see it in Disk Management Panel.
>
> Igor Sharovar
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

Your subject “SCSI Miniport virtualdisk driver” in no way would lead anyone to believe it has anything to do with KMDF. In fact, only in limited cases can a virtual driver hosting one or more ‘drives’ be done well as a SCSI miniport. Using KMDF requires that you implement several pieces of code to deal with mass storage that the port drivers usually handle for you.

If you have to disable Virtual Disk Service, then your driver has one or more problems. It should work with all Microsoft services working. Try using Driver Verifier and KMDF Verifier.
“Mudassar Tamboli” wrote in message news:xxxxx@ntdev…

Hi,

The driver is not miniport driver…but a kmdf based driver.

Disabling Virtual Disk Service solved the problem.

On 11/9/09, xxxxx@hotmail.com wrote:
>disk failed to appear in windows disk management.
Could you see your disk in Device Manager? If you do, just enable your disk. After that you could see it in Disk Management Panel.

Igor Sharovar


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer