without cencel irp penging..

Hi. all.

I met the system crash when i unload my test filter.
The message on the blue screen is one about doesn’t cancel a irp in pending.

(
my completion routine has just following code.

if(Irp->PendingReturned) IoMarkIrpPending(Irp);
return Irp->IoStatus.Status;
)

How can i handle this? (using IoSetCancelRoutine ?)
Best Regards, park.

Unloading file system filter drivers is really a bad ideea. During development, when you can afford every now and then a crash, you can build a system to count IRPs and unlaod only if there are no IRP’s pending at all.

Dan

“gyver-park” wrote in message news:xxxxx@ntfsd…
Hi. all.

I met the system crash when i unload my test filter.
The message on the blue screen is one about doesn’t cancel a irp in pending.

(
my completion routine has just following code.

if(Irp->PendingReturned) IoMarkIrpPending(Irp);
return Irp->IoStatus.Status;
)

How can i handle this? (using IoSetCancelRoutine ?)
Best Regards, park.

Thanks Dan.
----- Original Message -----
From: Dan Partelly
Newsgroups: ntfsd
To: File Systems Developers
Sent: Friday, July 12, 2002 1:15 AM
Subject: [ntfsd] Re: without cencel irp penging…

Unloading file system filter drivers is really a bad ideea. During development, when you can afford every now and then a crash, you can build a system to count IRPs and unlaod only if there are no IRP’s pending at all.

Dan

Windows NT does not support the unloading of file system filters. If you look at the FILESPY and SFILTER samples in the XP version of the IFSKit they show a way you can unload your filter in the CHK’d version of your filter (during development). This method will crash occasionally.

A production filter should never support unloading.

Neal Christiansen
Microsoft File System Filter Group

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

-----Original Message-----
From: gyver-park [mailto:xxxxx@jlandsoft.com]
Sent: Thursday, July 11, 2002 09:02 AM
To: File Systems Developers
Subject: [ntfsd] without cencel irp penging…

Hi. all.
?
I?met the system crash?when i unload my test filter.
The message on the blue screen is one about doesn’t cancel a irp in pending.
?
(
my completion routine?has just following code.
?
??? if(Irp->PendingReturned)?IoMarkIrpPending(Irp);
??? return Irp->IoStatus.Status;
)
?
?
How can i handle this? (using IoSetCancelRoutine ?)
Best Regards, park.
?
?

“return Irp->IoStatus.Status;” is wrong.
Completion routine can only return STATUS_SUCCESS or STATUS_MORE_PROCESSING_REQUIRED.

Max

----- Original Message -----
From: gyver-park
To: File Systems Developers
Sent: Thursday, July 11, 2002 8:01 PM
Subject: [ntfsd] without cencel irp penging…

Hi. all.

I met the system crash when i unload my test filter.
The message on the blue screen is one about doesn’t cancel a irp in pending.

(
my completion routine has just following code.

if(Irp->PendingReturned) IoMarkIrpPending(Irp);
return Irp->IoStatus.Status;
)

How can i handle this? (using IoSetCancelRoutine ?)
Best Regards, park.

b??箷????vڵ???)???i??d??{.n???zwZnV???h???z{_?ݴ?p%??l??