Re: Can my filter driver attach to \\Device\Mup??

Hmmm… what am I doing wrong here?? I keep getting
STATUS_BAD_NETWORK_PATH. I only need to pass down the
“\z:\server\share\file-a.txt” part to \Device\LanmanRedirector
right?? Where can I find more info/doc about
\Device\LanmanRedirector??

Thanks,
Patrick

This is the wrong way.
The command:
net use z: \server\share

  • creates a symbolic link in the form of
    \Device\LanmanRedirector\z:\server\share
    So, accesing such a mapped drive letter will bypass MUP.

Filter \Device\LanmanRedirector, update paths in the file
objects on CREATE
and return STATUS_REPARSE - this is a correct way.

I guess, you are requesting too much rights. Try with only read or write
flags…

Regards,
Giga

Patrick Lau wrote:

Hi all,

I am kinda a novice to the world of NT device driver so
please excuse my ignorance if I am asking stupid
questions.

I am trying to write a filter driver which redirect file requests
from one server to another server. For example, if someone want to
open file \server-A\share\file-A.txt , then I want to automatically
redirect
the request to server-B instead. What Target Device should I attach my
filter to?? I tried to get the device for \Device\Mup but it failed with
STATUS_SHARING_VIOLATION. What does that mean??

RtlInitUnicodeString(&deviceNameString, L"\Device\Mup");
status = IoGetDeviceObjectPointer(&deviceNameString,
STANDARD_RIGHTS_ALL,
&deviceExtension->TargetFileObject,
&deviceExtension->TargetDeviceObject);

Any help would be much appreciated!

Thanks,
Patrick


You are currently subscribed to ntfsd as: xxxxx@ParadigmGeo.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

Gregory Giguashvili  
Software Engineer  
Email: xxxxx@ParadigmGeo.com  
Tel: 972-9-9709379 Fax: 972-3-9709337  
Paradigm Geophysical Ltd.  
http://www.math.tau.ac.il/~gregoryg