how to get event for "disk claimed completion by disk.sys driver"

Hi All,

How do i get event for *all disks claimed completion by disk.sys driver*
If your aware about this event. Pl. let me know details about this.

Thanks in advance,

Regards,
Pravin G

There is no such event, with hot plug, etc the result would be never.
As a disk is recognized a full stack is typically built, so even if
there was such an event it is worthless.

Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr

“pravin gawale” wrote in message
news:xxxxx@ntdev:

> Hi All,
>
> How do i get event for all disks claimed completion by disk.sys driver
> If your aware about this event. Pl. let me know details about this.
>
> Thanks in advance,
>
> Regards,
> Pravin G

Don,

I am writing a program to install MPIO driver & DSMs and embedding it in to
product installer.
Product installer executes my program at the end of install procedure and
ask for system reboot.
but after system reboot it ask to reboot it again.

I analyzed this scenario and i found that while installing MPIO driver and
DSMs my program returns immediately after installation of MPIO driver and
DSMs. but after this disk configuration activity takes place where system
spend some time and ask for second reboot to activate new devices.

Disk configuration activity is as follows:

  1. All available SCSI disks claimed by the MPIO driver(mpdev.sys) based on
    comparing disks Hardware Id and compatible Id for available DSMs. With this
    all SCSI disks become MPIO disks with Hardware Id ‘gendisk’.

  2. Now disk.sys is looking for disks available on system who is having
    Hardware Id ‘gendisk’. After conformation of Hardware Id Disk driver starts
    claiming those disks with this all disks are ready for OS to use.
    So, now i want to monitor and control this activity in my program. so that i
    can avoid second reboot.
    Pl. guide me to achieve this.

Thanks,

Regards,
Pravin G

On Tue, Aug 31, 2010 at 4:37 PM, Don Burn wrote:

> There is no such event, with hot plug, etc the result would be never. As
> a disk is recognized a full stack is typically built, so even if there was
> such an event it is worthless.
>
>
> Don Burn (MVP, Windows DKD)
> Windows Filesystem and Driver Consulting
> Website: http://www.windrvr.com
> Blog: http://msmvps.com/blogs/WinDrvr
>
>
>
> “pravin gawale” wrote in message
> news:xxxxx@ntdev:
>
>
> Hi All,
>>
>> How do i get event for all disks claimed completion by disk.sys driver
>> If your aware about this event. Pl. let me know details about this.
>>
>> Thanks in advance,
>>
>> Regards,
>> Pravin G
>>
>
>
> —
> 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
>

The second reboot request after modifying the storage stack is
unavoidable if you have inserted your drivers into the boot or paging
or dump path. It might even be unavoidable for any mounted volume.

On Wednesday, September 1, 2010, pravin gawale
wrote:
> Don,
>
> I am writing a program to install MPIO driver & DSMs and embedding it in to product installer.
> Product installer executes my program at the end of install procedure and ask for system reboot.
> but after system reboot it ask to reboot it again.
>
> I analyzed this scenario and i found that while installing MPIO driver and DSMs my program returns immediately after installation of MPIO driver and DSMs. but after this disk configuration activity takes place where
> system spend some time and ask for second reboot to activate new devices.
> Disk configuration activity is as follows:
>
>
>
>
> 1) All available SCSI disks claimed by the MPIO
> driver(mpdev.sys) based on comparing disks Hardware Id and compatible Id for
> available DSMs. With this all
> SCSI disks become MPIO disks with Hardware Id ‘gendisk’.
>
>
>
> 2) Now disk.sys is looking for disks available on system
> who is having Hardware Id ‘gendisk’. After conformation of Hardware Id Disk driver
> starts claiming those disks with this all disks are ready for OS to use.
>
> So, now i want to monitor and control this activity in my program. so that i can avoid? second reboot.
> Pl. guide me to achieve this.
>
>
> Thanks,
>
> Regards,
> Pravin G
>
>
>
> On Tue, Aug 31, 2010 at 4:37 PM, Don Burn wrote:
>
> There is no such event, with hot plug, etc the result would be never. ? As a disk is recognized a full stack is typically built, so even if there was such an event it is worthless.
>
>
> Don Burn (MVP, Windows DKD)
> Windows Filesystem and Driver Consulting
> Website: http://www.windrvr.com
> Blog: http://msmvps.com/blogs/WinDrvr
>
>
>
> “pravin gawale” wrote in message news:xxxxx@ntdev:
>
>
> Hi All,
>
> How do i get event for all disks claimed completion by disk.sys driver
> If your aware about this event. Pl. let me know details about this.
>
> Thanks in advance,
>
> Regards,
> Pravin G
>
>
>
>
> —
> 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
>
> —
> 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


Mark Roddy

Hello Mark,

It is asking for second reboot because my program is not ensuring finish of
device configuration activity before first reboot.
if somehow i am able to wait on event for device install completion
activity, will confirm that storage device stack has been modified before
first reboot then i can shift control to main installer. This will work with
only one reboot.
but i want to get that event…!!!

Thanks,

Regards,
Pravin G

On Wed, Sep 1, 2010 at 4:15 PM, Mark Roddy wrote:

> The second reboot request after modifying the storage stack is
> unavoidable if you have inserted your drivers into the boot or paging
> or dump path. It might even be unavoidable for any mounted volume.
>
> On Wednesday, September 1, 2010, pravin gawale
> wrote:
> > Don,
> >
> > I am writing a program to install MPIO driver & DSMs and embedding it in
> to product installer.
> > Product installer executes my program at the end of install procedure and
> ask for system reboot.
> > but after system reboot it ask to reboot it again.
> >
> > I analyzed this scenario and i found that while installing MPIO driver
> and DSMs my program returns immediately after installation of MPIO driver
> and DSMs. but after this disk configuration activity takes place where
> > system spend some time and ask for second reboot to activate new devices.
> > Disk configuration activity is as follows:
> >
> >
> >
> >
> > 1) All available SCSI disks claimed by the MPIO
> > driver(mpdev.sys) based on comparing disks Hardware Id and compatible Id
> for
> > available DSMs. With this all
> > SCSI disks become MPIO disks with Hardware Id ‘gendisk’.
> >
> >
> >
> > 2) Now disk.sys is looking for disks available on system
> > who is having Hardware Id ‘gendisk’. After conformation of Hardware Id
> Disk driver
> > starts claiming those disks with this all disks are ready for OS to use.
> >
> > So, now i want to monitor and control this activity in my program. so
> that i can avoid second reboot.
> > Pl. guide me to achieve this.
> >
> >
> > Thanks,
> >
> > Regards,
> > Pravin G
> >
> >
> >
> > On Tue, Aug 31, 2010 at 4:37 PM, Don Burn wrote:
> >
> > There is no such event, with hot plug, etc the result would be never.
> As a disk is recognized a full stack is typically built, so even if there
> was such an event it is worthless.
> >
> >
> > Don Burn (MVP, Windows DKD)
> > Windows Filesystem and Driver Consulting
> > Website: http://www.windrvr.com
> > Blog: http://msmvps.com/blogs/WinDrvr
> >
> >
> >
> > “pravin gawale” wrote in message
> news:xxxxx@ntdev:
> >
> >
> > Hi All,
> >
> > How do i get event for all disks claimed completion by disk.sys driver
> > If your aware about this event. Pl. let me know details about this.
> >
> > Thanks in advance,
> >
> > Regards,
> > Pravin G
> >
> >
> >
> >
> > —
> > 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
> >
> > —
> > 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
>
> –
> Mark Roddy
>
> —
> 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
>

>2) Now disk.sys is looking for disks available on system who is having Hardware Id ‘gendisk’. After >conformation of Hardware Id Disk driver starts claiming those disks with this all disks are ready >for OS to use. So, now i want to monitor and control this activity in my program. so that i can >avoid second reboot.
You could monitor but how could you control this?
I got the similar situation. We had our disk class driver which creates a virtual disk. We had one reboot when a system installed a disk class driver and the second reboot when the system mounted the virtual disk. It happened only one time on clean machine which didn’t have our disk class driver. We just didn’t pay attention to this because it would not worth to solve the problem.

Igor Sharovar

> I got the similar situation. We had our disk class driver which creates a virtual disk. We had one

reboot when a system installed a disk class driver and the second reboot when the system mounted
the virtual disk.

What is the OS version?


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

This effect was certainly true for W2K3 vintage releases. I think it was
also true for 2008 server.

Mark Roddy

On Wed, Sep 1, 2010 at 6:22 PM, Maxim S. Shatskih wrote:

> > I got the similar situation. We had our disk class driver which creates a
> virtual disk. We had one
> >reboot when a system installed a disk class driver and the second reboot
> when the system mounted
> >the virtual disk.
>
> What is the OS version?
>
> –
> Maxim S. Shatskih
> Windows DDK MVP
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
>
> —
> 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
>

>What is the OS version?
It was on XP.

Igor Sharovar