RE: Rif. : [ntfsd] RE: [ntfsd] Rif. : [ntfsd] RE: IoDeleteDevice

Under what conditions are you calling IoDeleteDevice?

The only legal place to call IoDeleteDevice is when your FastIoDetachDevice routine is called. This is the only point in time where this operation is properly synchronized with the rest of the system.

Once a filter is loaded there is no mechanism in the system that allows you to safely unload the filter.

The XP IFSKit samples show you how you can unload your filter (and delete your device objects) with a DriverUnload routine but this is ONLY for development purposes. It is not to be used in a production filter because it is not a safe operation.

Neal Christiansen

This posting is provided “AS IS” with no warranties, and confers no rights.

-----Original Message-----
From: xxxxx@motus.com [mailto:xxxxx@motus.com]
Sent: Monday, February 04, 2002 01:03 PM
To: File Systems Developers
Subject: [ntfsd] Rif. : [ntfsd] RE: [ntfsd] Rif. : [ntfsd] RE: IoDeleteDevice

If I remove the IoDeleteDevice call, looking the device list, I still can
see my device, with a RefCnt of 0…


R?jean Caron - xxxxx@motus.com
Motus Technologies inc.

“Jamey Kirby”

com> cc :
Envoy? par : Objet : [ntfsd] RE: [ntfsd] R?f. : [ntfsd] RE: IoDeleteDevice
xxxxx@lis
ts.osr.com

2002-02-04 15:50
Veuillez r?pondre ?
“File Systems
Developers”

In w2k+, if the ref count is dropped to zero, the system will delete the
device object; you do not have to. This is probably the problem; you are
deleteing a DO that has already been deleted when its ref count went to
zero.

Jamey

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@motus.com
Sent: Monday, February 04, 2002 12:44 PM
To: File Systems Developers
Subject: [ntfsd] R?f. : [ntfsd] RE: IoDeleteDevice

No.

I also have to mention that all resources are released, and that it’s
running at PASSIVE level…
-------------------------------------------------------
R?jean Caron - xxxxx@motus.com
Motus Technologies inc.

“Jamey Kirby”

Developers"

com> cc :

Envoy? par : Objet : [ntfsd]
RE: IoDeleteDevice

xxxxx@lis

ts.osr.com

2002-02-04 15:38

Veuillez r?pondre ?

“File Systems

Developers”

Are you filtering the FSD?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@motus.com
Sent: Monday, February 04, 2002 12:35 PM
To: File Systems Developers
Subject: [ntfsd] IoDeleteDevice

Hi everyone,

Can someone explain what may cause a page fault when calling
IoDeleteDevice?

I looked everywhere around to find the possible causes, checked
everything and still get it.

Volume is dismounted, reference count is 0, both in the device object
and the Vpb.

Am I missing something, once again?

-------------------------------------------------------
R?jean Caron - xxxxx@motus.com
Motus Technologies inc.


You are currently subscribed to ntfsd as: xxxxx@storagecraft.com To
unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: xxxxx@motus.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: xxxxx@storagecraft.com To
unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: xxxxx@motus.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: xxxxx@Windows.Microsoft.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