Greg,
Why are you freeing it before the file is closed? I ask because that’s the
entire POINT of the IRP_MJ_CLOSE operation - to tell you when the rest of
the OS is done with your file object.
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
-----Original Message-----
From: Greg Pearce [mailto:xxxxx@filetek.com]
Sent: Thursday, January 17, 2002 2:23 AM
To: File Systems Developers
Subject: [ntfsd] RE: Diagnose Access Violation in
FsRtlAcquireFileForModWrite
Thanks Ravi -
After looking around a lot more, and finally heeding Tony Mason’s previous
post on this subject, I discovered that my ERESOURCE for the particular Fcb
was getting freed while the lazy page writer was (getting ready to) using
it! I think I’ve figured out the problem, but I still have questions…
-
Does anyone know of a way to make the lazy page writer run when I want
it to, for testing? -
If I set the ERESOURCE pointer to NULL after I free it, will the Lazy
writer leave it alone? Or must it always be non-zero? -
What would be a good way to know if the ERESOURCE is being used so that
I don’t free it? Is there a function call to determine if the thing is in
use?
Thanks - Greg
You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com