I don’t have any answers…just more questions.
I’m planning to add UNC support to my IFS and was hoping that, once UNCs were in
place, “the system” would magically handle drive letter mapping. For instance,
when Explorer is looking at \Srv and you right mouse click on Vol, one of the
option will be “Map Network Drive…”
So is this basically correct: if UNCs are done right, drive letter mapping if
free?
Thanks in advance,
Demyn
wrote in message news:xxxxx@ntfsd…
>
> Hi,
>
> I have a redirector FSD. It implements UNC paths.
>
> To make the customer happy, I also need to map a volume mounted by my FSD
> into a drive letter. I understand that I can do it via either
> IoCreateSymbolicLink in kernel or DefineDosDevice in Win32. I prefer to do
> it in the Kernel.
>
> My question is, what link do I need to create – for example, if my
> volume’s UNC is \Srv\Vol and I want it to be available on the H: drive.
>
> I tried to create a link
> ??\H: –> \Device\UNC\Srv\Vol
> but that did not do it.
>
> My appologies if this was already answered here before; I could not find
> the information…
>
> thanks in advance
> Chuck Shavit
>
> —
> You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
> To unsubscribe send a blank email to
leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
—
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
As I understand it, when you select “Map Network Drive…”, your NP DLL’s
NPAddConnection3() is called. You have to provide the code in
NPAddConnection3() to do the mapping. And that’s where my question kicks
in…
Chuck Shavit
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Demyn -
You should register your redirector with MUP if it’s a UNC provider via
FsRtlRegisterUncProvider.
(if you’re a mini-RDR, you just set the appropriate flag -
RegisterUncProvider - in the device object)
Drive letters should be created by users & not by your RDR
Ravi
This posting is provided “AS IS” with no warranties, and confers no
rights. You assume all risk for your use
-----Original Message-----
From: Demyn Plantenberg [mailto:xxxxx@almaden.ibm.com]
Sent: Tuesday, February 12, 2002 5:02 PM
To: File Systems Developers
Subject: [ntfsd] Re: How to link drive letter –> UNC path
I don’t have any answers…just more questions.
I’m planning to add UNC support to my IFS and was hoping that, once UNCs
were in place, “the system” would magically handle drive letter mapping.
For instance, when Explorer is looking at \Srv and you right mouse
click on Vol, one of the option will be “Map Network Drive…”
So is this basically correct: if UNCs are done right, drive letter
mapping if free?
Thanks in advance,
Demyn
wrote in message news:xxxxx@ntfsd…
>
> Hi,
>
> I have a redirector FSD. It implements UNC paths.
>
> To make the customer happy, I also need to map a volume mounted by my
> FSD into a drive letter. I understand that I can do it via either
> IoCreateSymbolicLink in kernel or DefineDosDevice in Win32. I prefer
> to do it in the Kernel.
>
> My question is, what link do I need to create – for example, if my
> volume’s UNC is \Srv\Vol and I want it to be available on the H:
> drive.
>
> I tried to create a link
> ??\H: –> \Device\UNC\Srv\Vol
> but that did not do it.
>
> My appologies if this was already answered here before; I could not
> find the information…
>
> thanks in advance
> Chuck Shavit
>
> —
> You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.com
> To unsubscribe send a blank email to
leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
—
You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
—
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
wrote in message news:xxxxx@ntfsd…
>
> I tried to create a link
> ??\H: –> \Device\UNC\Srv\Vol
> but that did not do it.
I see a \Device\Mup and a ??\UNC on my system, but no \Device\UNC?
Does H: appear under My Computer?
(Since on one has answers for you, I thought some more dumb questions might
help.)
– Demyn
—
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> “Ravisankar Pudipeddi” wrote in message
news:xxxxx@ntfsd…
>
> Demyn -
> You should register your redirector with MUP if it’s a UNC provider via
> FsRtlRegisterUncProvider.
> (if you’re a mini-RDR, you just set the appropriate flag -
> RegisterUncProvider - in the device object)
> Drive letters should be created by users & not by your RDR
>
> Ravi
Thanks…that sounds easy enough.
Is this consistent with what Chuck is saying about the NPAddConnection3() call?
(It’s okay if your answer is a simple ‘yes’…I’ve got some reading to do.)
– Demyn
—
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Demyn,
You are absolutely right. I made a trivial mistake, and had a mental block
that prevented me from finding and fixing it.
The link
??\H: –> \Device\Mup\Srv\Vol
did it – it maps the UNC \Srv\Vol into the H: drive.
Thanks,
Chuck
On 02/12/02, ““Demyn Plantenberg” ” wrote:
> wrote in message news:xxxxx@ntfsd…
> >
>
> > I tried to create a link
> > ??\H: –> \Device\UNC\Srv\Vol
> > but that did not do it.
>
> I see a \Device\Mup and a ??\UNC on my system, but no \Device\UNC?
> Does H: appear under My Computer?
>
> (Since on one has answers for you, I thought some more dumb questions might
> help.)
>
> – Demyn
>
>
>
>
> —
> You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
—
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> The link
??\H: –> \Device\Mup\Srv\Vol
The correct way is:
??\H: –> ??\UNC\Srv\Vol
RDR.SYS in NT4 used this.
??\UNC then points to \Device\Mup.
Max
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Thanks Max; I modified the code, and it works equally well.
I guess that when you say “the correct way” you mean that Microsoft is not
guranteeing the link ??\UNC –> \Device\Mup in future systems, right? I
wonder if they guarantee the existance of ??\UNC in future systems…
Chuck
On 02/13/02, ““Maxim S. Shatskih” ” wrote:
> > The link
> > ??\H: –> \Device\Mup\Srv\Vol
>
> The correct way is:
>
> ??\H: –> ??\UNC\Srv\Vol
>
> RDR.SYS in NT4 used this.
>
> ??\UNC then points to \Device\Mup.
>
> Max
>
>
>
> —
> You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
—
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com