Need to hook "Save to shutdown" or EWF shutdown.

M

Mark K Vallevand

I have an LED driver that simply blinks an LED when XPe is running. Simple.
Useful. It tells users that the system is running.

But, when shutting down the system, the LED driver stops blinking before the
EWF has finished writing the CF with its cached updates. Users are dropping
power while the CF is being written. Corruption.

This is a headless system, and there are no other indicators. No disk
activity LED. No video. Nothing. Only the one LED.

I'd like to have my LED driver stop after the EWF has finished updating the
CF. Is this as simple as making the EWF service depend on my LED driver?
Maybe my LED driver should be the same type as the EWF driver, or in the
same group, or something.

Anyone have ideas on getting a driver to start before EWF starts and stop
after EWF stops?

--
Regards.
Mark K Vallevand (e-mail address removed)

Beer is living proof that God loves us and wants us to be happy.
- Benjamin Franklin


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.
 
M

Mark K Vallevand

OK. I can't make the LED driver stop after the EWF driver by changing
dependencies or load groups.
It looks like all drivers stop before the EWF driver. Any suggestions are
welcome.

--
Regards.
Mark K Vallevand (e-mail address removed)

Beer is living proof that God loves us and wants us to be happy.
- Benjamin Franklin


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.
 
C

Coderer

Couldn't you update your LED driver to call the EWF "commit" function
and wait for it to finish before it unloads itself? I mean, in the
"onClosing" function (or whatever, depending on your driver
implementation/language), just hook into the EWF DLL (or use the
command line ewfmgr util) and wait for it to finish its commits, and
maybe disable EWF to the drive for good measure. I wouldn't be
immediately sure *how* to do this, but I get the feeling it should be
possible. I don't know how to fix it by tinkering with XPe, but I
think you could at least work around the problem.
 
M

Mark K Vallevand

No. That won't work. This is a kernel mode driver. I need that driver to
continue to blink the LED until the EWF driver finishes writing the Compact
Flash.

--
Regards.
Mark K Vallevand (e-mail address removed)

Beer is living proof that God loves us and wants us to be happy.
- Benjamin Franklin


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.
 
M

Mark K Vallevand

Never mind.
As soon as you ask for help, you find the answer. Some corollary of
Murphy's Law.
Just register for notification of shutdown-after-file-system-flush instead
of just shutdown.

--
Regards.
Mark K Vallevand (e-mail address removed)

Beer is living proof that God loves us and wants us to be happy.
- Benjamin Franklin


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top