My driver (legacy fsfd) attempts to write some metadata to the file system during shutdown processing. I believe it was working just fine as implemented, but it stopped working at some point (maybe just a luck issue on ordering/timing ?).
Anyway, ZwCreateFile is failing with STATUS_TOO_LATE when processing IRP_MJ_SHUTDOWN. Is there another IRP that can be intercepted prior to shutdown processing that will be “early” enough to be processed ?
-Paul
There is no other IRP I’m aware of, other than your own. In usermode, if you
had an
app detect the wm_shutdown message and then send an IOCTL to your driver,
that should
allow you enough time.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@ultrabac.com
Sent: Tuesday, April 21, 2009 7:00 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] IRP_MJ_SHUTDOWN processing
My driver (legacy fsfd) attempts to write some metadata to the file system
during shutdown processing. I believe it was working just fine as
implemented, but it stopped working at some point (maybe just a luck issue
on ordering/timing ?).
Anyway, ZwCreateFile is failing with STATUS_TOO_LATE when processing
IRP_MJ_SHUTDOWN. Is there another IRP that can be intercepted prior to
shutdown processing that will be “early” enough to be processed ?
-Paul
NTFSD is sponsored by OSR
For our schedule of debugging and file system seminars
(including our new fs mini-filter seminar) 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