Virtual Storport Miniport - LU extension

Hi,

I have got a questions about the LU extension.
I realized that I can get the extension with StorPortGetLogicalUnit only if I reported the specific Lun in SCSIOP_REPORT_LUN before.
So I am unable to initialize a LU extension before I report them.
Is that right or is there be a bug in my code?

If this is right that means I have to allocate my structs for the LUs elsewhere e.g. in my device extension…

Sorry I am a bit confused about that.
Could you please tell me if I am mistaken or if I am missing something?

Thank you!

> So I am unable to initialize a LU extension before I report them.

Correct.

Short answer but it helps me a lot!

Thank you