Hi,
I have an FS Filter driver that performs a variety of redirections based on
Reparse point data. I would like to have the option of redirecting to a
network file system (effectively mounting the file system in a folder), but
I cannot get this to work. If I map a drive to a network share I can
redirect to the contents of the drive no problem, but I cannot access it as
a UNC share. Relying on a drive map on a multi-user system does not seem
very sensible to me.
My filter sits at the top end of the stack and there is no problem passing
down a different drive letter - I suspect that I have to change the device
object in the IRP. However, I do not know which device object I should be
passing the IRP to. Is there a way I can look up the relevant device object
based on where I want to redirect the file to. For example if I want to
redirect to:
??\UNC\server\share\path[\file] can I call a function to find which device
this goes to, or is there a general UNC device object that I can pass all
UNC paths to regardless of the underlying driver that actually implements
that path? Or - am I in the wrong position on the stack?
All help gratefully received, as I am struggling with the documentation.
Thanks in advance,
Rob Lambden
I think you can try to open the Multiple UNC Provider device
(\Device\Mup) and submit your UNC path.
It would then delegate your request to the appropriate redirector, which
device object you can eventually retrieve.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Rob Lambden
Sent: Wednesday, December 08, 2004 5:36 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] FS Filter redirecting to Network FS
Hi,
I have an FS Filter driver that performs a variety of redirections based
on Reparse point data. I would like to have the option of redirecting
to a network file system (effectively mounting the file system in a
folder), but I cannot get this to work. If I map a drive to a network
share I can redirect to the contents of the drive no problem, but I
cannot access it as a UNC share. Relying on a drive map on a multi-user
system does not seem very sensible to me.
My filter sits at the top end of the stack and there is no problem
passing down a different drive letter - I suspect that I have to change
the device object in the IRP. However, I do not know which device
object I should be passing the IRP to. Is there a way I can look up the
relevant device object based on where I want to redirect the file to.
For example if I want to redirect to: ??\UNC\server\share\path[\file]
can I call a function to find which device this goes to, or is there a
general UNC device object that I can pass all UNC paths to regardless of
the underlying driver that actually implements that path? Or - am I in
the wrong position on the stack?
All help gratefully received, as I am struggling with the documentation.
Thanks in advance,
Rob Lambden
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@relicore.com
To unsubscribe send a blank email to xxxxx@lists.osr.com