File System Filter Driver Preventing Hibernate

Hello, All.

I have a file system filter driver that attaches to
all local drives. I’ve found that when my driver is
attached to the system drive, the system will not go
into hibernate mode (Testing with WinXP/SP1 right
now).

I’m passing through all IRPs that I don’t handle using
IoCallDriver, including IRP_MJ_POWER and IRP_MJ_PNP.
What else might I need to do to allow hibernation?

Thanks for any suggestions.

Myk

Ensure that your filter pass all FSCTLs down properly.

Max

----- Original Message -----
From: “Myk Willis”
To: “File Systems Developers”
Sent: Sunday, March 23, 2003 6:47 AM
Subject: [ntfsd] File System Filter Driver Preventing Hibernate

> Hello, All.
>
> I have a file system filter driver that attaches to
> all local drives. I’ve found that when my driver is
> attached to the system drive, the system will not go
> into hibernate mode (Testing with WinXP/SP1 right
> now).
>
> I’m passing through all IRPs that I don’t handle using
> IoCallDriver, including IRP_MJ_POWER and IRP_MJ_PNP.
> What else might I need to do to allow hibernation?
>
> Thanks for any suggestions.
>
> Myk
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

Max -

Thanks for the suggestion. I verified that FSCTLs are
passed-through appropriately, but found my problem in
the process:

for(i=0;i<irp_mj_maximum_function> {
DriverObject->MajorFunction[i] = XxxPassThrough;
}
// etc…

…of course it should have been:

for(i=0;i<=IRP_MJ_MAXIMUM_FUNCTION;i++)
^^

Since IRP_MJ_PNP is the last dispatch routine in the
array, I actually wasn’t passing it down.

Off-by-one strikes again. Thanks for the help.

Myk
— “Maxim S. Shatskih”
wrote:
> Ensure that your filter pass all FSCTLs down
> properly.
>
> Max
>
> ----- Original Message -----
> From: “Myk Willis”
> To: “File Systems Developers”
> Sent: Sunday, March 23, 2003 6:47 AM
> Subject: [ntfsd] File System Filter Driver
> Preventing Hibernate
>
>
> > Hello, All.
> >
> > I have a file system filter driver that attaches
> to
> > all local drives. I’ve found that when my driver
> is
> > attached to the system drive, the system will not
> go
> > into hibernate mode (Testing with WinXP/SP1 right
> > now).
> >
> > I’m passing through all IRPs that I don’t handle
> using
> > IoCallDriver, including IRP_MJ_POWER and
> IRP_MJ_PNP.
> > What else might I need to do to allow hibernation?
> >
> > Thanks for any suggestions.
> >
> > Myk
> >
> >
> > —
> > You are currently subscribed to ntfsd as:
> xxxxx@storagecraft.com
> > To unsubscribe send a blank email to
> xxxxx@lists.osr.com
> >
>
>
>
> —
> You are currently subscribed to ntfsd as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
xxxxx@lists.osr.com</irp_mj_maximum_function>