how to debug virtual miniport driver caused partition format failed

I wrote a virtual storport miniport driver to export a physical disk as virtual disk. After disk exported successfully, a error occured when format the new created partition on virtual disk.
The new created partition can not be formated with NTFS, but can be formated with FAT32.
I want to know why, please help to debug this problem.
Thank you for your advisement.

There’s no easy answer. Either you’re not responding to an SRB correctly or
you’re not returning the correct data.

Best place to start is to take a ProcMon trace of format when it works (i.e.
on something other than your drive) and then take another trace using your
drive. See where the two diverge and start trying to narrow down the
problem.

-scott
OSR
@OSRDrivers

wrote in message news:xxxxx@ntdev…

I wrote a virtual storport miniport driver to export a physical disk as
virtual disk. After disk exported successfully, a error occured when format
the new created partition on virtual disk.
The new created partition can not be formated with NTFS, but can be formated
with FAT32.
I want to know why, please help to debug this problem.
Thank you for your advisement.

Thank you for your advise.
I have used to trace my driver with dbgView, and i will use procmon to get more trace info to narrow down the problem.

I’ve done a few of these. Make sure you handle all variants of each cdb
type.

On Tue, Aug 30, 2016, 9:41 PM wrote:

> Thank you for your advise.
> I have used to trace my driver with dbgView, and i will use procmon to get
> more trace info to narrow down the problem.
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list online at: <
> http://www.osronline.com/showlists.cfm?list=ntdev&gt;
>
> MONTHLY seminars on crash dump analysis, WDF, Windows internals and
> software drivers!
> Details at http:
>
> To unsubscribe, visit the List Server section of OSR Online at <
> http://www.osronline.com/page.cfm?name=ListServer&gt;
></http:>