Can I forward request to Device I didn't attach to??

Hi all,

I am wondering, can I use IoCallDriver() to redirect
an Irp request to a device I didn’t attach to?? In
other words, can I forward the Irp to a device that’s
not directly below me in the device stack. The reason
I need this is that I want to create a virtual device/file
system that people can write to, for example “\.\virtualfs”
and then redirect all requests of that to one of my network
servers. I don’t really want to intercept the requests to
my network servers, but just the request to my virtual
device. Any ideas on what’s my best approach here??
Oh, by the way, I can’t use STATUS_REPARSE here because
I need to know what’s the return status of the forwarded
request and reforward it to another server if the first
one failed.

Thanks,
Patrick

Yes, there is no required to be attached.

Don Burn

----- Original Message -----
From: “Patrick Lau”
To: “File Systems Developers”
Sent: Wednesday, August 09, 2000 3:42 PM
Subject: [ntfsd] Can I forward request to Device I didn’t attach to??

>
> Hi all,
>
> I am wondering, can I use IoCallDriver() to redirect
> an Irp request to a device I didn’t attach to?? In
> other words, can I forward the Irp to a device that’s
> not directly below me in the device stack. The reason
> I need this is that I want to create a virtual device/file
> system that people can write to, for example “\.\virtualfs”
> and then redirect all requests of that to one of my network
> servers. I don’t really want to intercept the requests to
> my network servers, but just the request to my virtual
> device. Any ideas on what’s my best approach here??
> Oh, by the way, I can’t use STATUS_REPARSE here because
> I need to know what’s the return status of the forwarded
> request and reforward it to another server if the first
> one failed.
>
> Thanks,
> Patrick
>
> —
> You are currently subscribed to ntfsd as: xxxxx@acm.org
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>

as long as there are enough stack locations in the IRP that you arre
forwarding.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Don Burn
Sent: Wednesday, August 09, 2000 12:46 PM
To: File Systems Developers
Subject: [ntfsd] Re: Can I forward request to Device I didn’t attach
to??

Yes, there is no required to be attached.

Don Burn

----- Original Message -----
From: “Patrick Lau”
> To: “File Systems Developers”
> Sent: Wednesday, August 09, 2000 3:42 PM
> Subject: [ntfsd] Can I forward request to Device I didn’t attach to??
>
>
> >
> > Hi all,
> >
> > I am wondering, can I use IoCallDriver() to redirect
> > an Irp request to a device I didn’t attach to?? In
> > other words, can I forward the Irp to a device that’s
> > not directly below me in the device stack. The reason
> > I need this is that I want to create a virtual device/file
> > system that people can write to, for example “\.\virtualfs”
> > and then redirect all requests of that to one of my network
> > servers. I don’t really want to intercept the requests to
> > my network servers, but just the request to my virtual
> > device. Any ideas on what’s my best approach here??
> > Oh, by the way, I can’t use STATUS_REPARSE here because
> > I need to know what’s the return status of the forwarded
> > request and reforward it to another server if the first
> > one failed.
> >
> > Thanks,
> > Patrick
> >
> > —
> > You are currently subscribed to ntfsd as: xxxxx@acm.org
> > To unsubscribe send a blank email to $subst(‘Email.Unsub’)
> >
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>