I am writing a ifs filter driver. When I test it under WinNT4 sp4, I
always got a ERROR_ACCESS_DENIED. That’s awful. And at last, I found that
if I remove the piece of code - IoRegisterFsRegisterationChange(xxx,xxx),
createfile will be ok.
Anyone can help me?
This sounds like the famous NT 4.0 reference count bug. Here is the
comments from our code regarding this issue:
/*
NOTE: NT4 has a bug - IoRegisterFsRegistrationChange increments the
DeviceObject->ReferenceCount field on the first device object hanging
off this driver to prevent the driver from unload while the FS
registration callback is not revoked a) BSOD if no device objects at all
yet b) if this device object is exclusive - it will never be opened
(IopParseDevice fails CREATE for exclusive device objects with
ReferenceCount != 0) NT5+ does not have this bug - it uses
ObReferenceObject on the driver object instead.
*/
Jamey
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of liguofang
Sent: Thursday, May 01, 2003 1:13 AM
To: File Systems Developers
Subject: [ntfsd] IoRegisterFsRegisterationChange cause CreateFile failed
under NT4
I am writing a ifs filter driver. When I test it under WinNT4 sp4, I
always got a ERROR_ACCESS_DENIED. That’s awful. And at last, I found
that
if I remove the piece of code -
IoRegisterFsRegisterationChange(xxx,xxx),
createfile will be ok.
Anyone can help me?
You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com