RE: Diagnose Access Violation in FsRtlAcquireFileForM- odWrite

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…

  1. Does anyone know of a way to make the lazy page writer run when I want
    it to, for testing?

  2. 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?

  3. 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

Tony,

The free is occuring in CLOSE. I’m guessing here that it is a timing thing
where just as I get the close, the lazy writer is also trying to do
something with it. Is this possible?


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